Youtube Videos | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Youtube Videos

Can you embed multiple videos from youtube and play them all at once?

9th May 2017, 6:22 PM
Marcelo Maximiliano
Marcelo Maximiliano - avatar
4 Answers
+ 11
YouTube has an API, you can use it for your purpose: https://www.youtube.com/yt/dev/api-resources.html
9th May 2017, 6:26 PM
Tashi N
Tashi N - avatar
+ 8
Play them all at once.... My answer gonna say no.... Wait..? You mean add two video in page? Or play 2 video at once? If first question "Yes" surely if Second question "No" Bc you need to instantly change src of video For make a valid youtube link for iframe tag https://www.w3schools.com/html/html_youtube.asp
9th May 2017, 7:24 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 7
Yes you can do that.
9th May 2017, 7:06 PM
PureLogicality
PureLogicality - avatar
0
Upload the video to YouTube Take a note of the video id Define an <iframe> element in your web page Let the src attribute point to the video URL Use the width and height attributes to specify the dimension of the player Add any other parameters to the URL <iframe width="420" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY"> </iframe> http://net-informations.com/q/mis/youtube.html
30th May 2019, 6:10 AM
rahul kumar
rahul kumar - avatar