In this video, learn how Business.gov makes it easier for businesses to do business.
Would you like to embed YouTube® videos on your website? Would you like to ensure that your website viewers with disabilities have equal access to your video?
Business.gov has made its YouTube video player available to web managers who would like to embed YouTube videos on their website. This video player follows the Section 508 Standards for web-based applications.
An example of this Section 508 compliant video player appears to the left.
Note: The following instructions are for embedding a single video on a page. We also have instructions for embedding a playlist (group of videos).
*Note: Government agencies may upload videos to YouTube by complying with the TOS agreement signed by GSA.
To embed the 508 Compliant Video Player on a page with your video follow the following steps:
Download this ZIP file that contains 508player.js and 508player.html, the files necessary to use the video player on your website.
Load the JavaScript file, 508player.js, onto your web server. The 508player.js file must be called by any page on which you use the video player. The recommended method is to put the JavaScript call in the head of your page. If you have questions on this step, please consult your website’s administrator.
Locate the video you wish to embed on YouTube and copy the Video ID. The Video ID appears in the URL of the page after watch?v=
Note: the URL for your video might end with extra parameters: &feature=... If that is the case, do not include those parameters with the Video ID. The Video ID will only consist of the code following watch?v= but before &feature=...
For example, the ID of the YouTube video embedded on the top of this page is rvZwET2gwLU:
Open the 508player.html file and replace VIDEO_ID on lines 6 & 10 with your YouTube Video ID. On line 11, enter a brief description of your video's content.
If desired, change the size of the player (in pixels) on line 7 of 508player.html. The video player embedded at the top of this page is a 320 x 258 (4:3 ratio small player). The suggested size for a small widescreen player is 320 x 194.
Now this code is ready to be pasted on any HTML web page!