Embed multiple youtube videos in single player as a playlist
Note: This is just a screenshot image, see below for the actual live video playlist |
Embed multiple youtube videos in single player as a playlist
Short answer:<iframe src="http://www.youtube.com/embed/kffacxfA7G4?playlist=tcYodQoapMg,iTNZ-OzBoBo" width="560" height="315"></iframe>
Result (real live example):
Details
Able to embed multiple youtube videos into a single player as a playlist is very handy when you want to embed several videos at without the embedded videos actually taking all your space on a webpage while allowing your audience to access all the information you want to deliver to them.
Simply copy the id of each YouTube video in the url and then replace them into the playlist link:
http://www.youtube.com/embed/VIDEO_ID_1?playlist=VIDEO_ID_2, VIDEO_ID_3
Insert the url into an iframe with your own preferred width, height and properties for your embedded video playlist.
How to get YouTube video id?
Simply go to a browser, open YouTube website, click into the video watching page, and then copy the http url.
For example: https://www.youtube.com/watch?v=liJVSwOiiwg
The YouTube video id is liJVSwOiiwg, just after https://www.youtube.com/watch?v=, which is different and unique for every different video on YouTube.
For more details: How to get YouTube video ID?
Comments
Post a Comment