If you want to enable your visitors to play YouTube videos on your website, you need an embeddable media player that supports HTML5 and Flash. JW Player supports both HTML5 and Flash and also supports all major Web browsers. The player also supports mobile platforms, so your mobile visitors can play the videos as well. To play videos on a Web page, you need the ability to edit the code of the page.

Step 1

Transfer the JW Player files you downloaded from the JW Player website to your own website. You can transfer the player files to a new folder -- Scripts for example.

Step 2

Open the Web page where you want to insert the player using the HTML editor of your choice. You can even open the page in Notepad.

Step 3

Insert the following code between the "" and "" tags, replacing "Scripts" with the name of the folder where you stored the player files, to initialize the player's JavaScript script:

If you purchased the Pro, Premium or Ads edition of JW Player, you must provide your player license key by also inserting the following line and replacing "Your_JW_Player_Key" with your license key:

Step 4

Select the position where you want the JW player object to appear by inserting the following code anywhere between the "" and "" tags and replacing "myJWPlayer" with a unique "div" ID:

Player is loading...

Step 5

Enter the following code below the "

" line to create the video player object and change its appearance and parameters:

Replace "YouTube_URL" with the URL of the YouTube video you want to play. Replace "X" with the desired height and "Y" with the desired width -- in pixels -- of the JW Player element. Replace "/uploads/cover.jpg" with the path to the image you want to display before playback is started.

Step 6

Save the Web page and test the player by navigating to the page using a Web browser. Click the "Play" button to start playing the YouTube video.