Get embeded URL from YouTube
Click into Share button and choose Embed. From there customize your configuration and copy the URL.
Modify the direct URL
Paste it into ur javascript gadget. Then start modify the code. at the end of the url u can add several parameter. The parameter can be found in iframe player parameter. Add tothe last character of the url. For example,
https://www.youtube.com/embed/JGwWNGJdvx8
become
https://www.youtube.com/embed/JGwWNGJdvx8?&autoplay=1
Make loop in a single video
To enable infinite loop into it, make a playlist with your YouTube account. Then click edit button on your playlist.
Get your source code by click the share button > embed.
Lastly modify the URL.
For example,
https://www.youtube.com/embed/videoseries?list=PLH7VE933TYYXVKQhAWty_oLqjUO6JPWVZ
become
https://www.youtube.com/embed/videoseries?list=PLH7VE933TYYXVKQhAWty_oLqjUO6JPWVZ&loop=1
Changing embed sizing
To apply different size in embedding, note that the size is declared in px for width and height. Standard sizing ratio will be follow the 1:1, 4:3, 16:9 :16:10 and etc.
For example,
<iframe width="300" height="300" ...> </iframe> which is a 1:1 ratio.
End Result
<!-- YOUTUBE VIDEO EMBED -->
<iframe width="300" height="200"
src="https://www.youtube.com/embed/videoseries?list=PLH7VE933TYYXVKQhAWty_oLqjUO6JPWVZ&autoplay=1&loop=1" allow="autoplay; encrypted-media">
</iframe>
Please stay with us, more about Arduino will be publishing in the up coming post. Feel free to share this article around and do like & follow at our Facebook page.
keyword, keywords, google,
nit, Music, video, mp4, mp3, youtube, embed, Embeded , attach, autoplay, loop, playlist, single, video, audio, steps, method, guide, how, nitforall, sharing, computing, hacks, blog, ict, web, development
links, url, link, http, https,
nit.blogspot.com, fb.com/nitforall, nitforall@gmail.com, contact nit, contact us, email nit, website nit, facebook nit, web nit, fb nit
great
ReplyDeleteVideo Embed is an effective way to get more people to watch your videos.
ReplyDelete