If you’re searching the answer of how I add YouTube video in my website? I will help you.
Some time we want that video which i update in YouTube channel also see on our website also, but this is not happen when you try standard way of embedding YouTube video (code provided by that particular video). So, If you are planning to embed multiple YouTube videos on a web page, you may even consider putting all these videos into a single YouTube playlist and then embed the playlist into your page.
How to Embed YouTube Video Playlists
Learn how you can easily embed YouTube video playlists on your web pages. These embedded video playlists use the new HTML5 based IFRAME tags.
To embed a playlist, follow the steps below:
1. Go to your Video Manager and select Playlists.
2. Select the playlist you’d like to embed. Click the Share button at the top of the page.
3. Copy the embed code from the upper right corner.
4. Paste the code into your website or blog.
The default embed code for any YouTube video playlist looks something like this (remember to replace the word “ID” with the actual YouTube playlist ID) :
<object width=”480″ height=”385″> <param name=”movie” value=”http://www.youtube.com/p/ID”></param><param name=”allowFullScreen” value=”true”></param> <param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/p/ID” width=”480″ height=”385″ type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true”></embed></object>
If you find the above code confusing, there a much simpler way as well.
YouTube offers an IFRAME option for embedding individual videos and the same code can be extended to embed video playlists as well.
You may have to modify the value of height and width attributes to make the video player fit your page.
What’s the advantage? The code looks clean and, going forward, Google could make these playlists HTML5 ready. Then your existing video playlist will play on browsers that don’t have the Flash plugin without you having to change the embed code.