Videos are becoming more and more popular on the web, and YouTube is the number one place for hosting videos. Since it’s free and saves lots of space and bandwidth on your own site, YouTube is a great answer for storing videos. But sometimes you are looking for something a little more customized than YouTube’s default embed code.
Assume example video code:
//www.youtube.com/embed/5EnL2WXsxNQ
Autoplay
example:
//www.youtube.com/embed/5EnL2WXsxNQ?autoplay=1
Don’t show related videos
//www.youtube.com/embed/5EnL2WXsxNQ?rel=0
Setting the Start and End Points
//www.youtube.com/embed/5EnL2WXsxNQ?start=44&end=52
Looping the Video
http//www.youtube.com/embed/5EnL2WXsxNQ&loop=1&playlist=5EnL2WXsxNQ
Multiple parameters
If you are adding more than one parameter, you will need to put “&” between them, for instance, autoplay and no related videos would look like this:
//www.youtube.com/embed/5EnL2WXsxNQ?autoplay=1&rel=0
Or see full list of parameters here:
https://developers.google.com/youtube/player_parameters
Leave a Reply