+ 2

❓❓ HTML5 Question ❓❓

If I put the url of a YouTube video into the src attribute of an audio or video element, will it play the audio or video from YouTube?

5th Dec 2017, 10:01 AM
janiacodes_
janiacodes_ - avatar
5 Respuestas
+ 4
Yes, surely it will play You can try it in code playground
5th Dec 2017, 10:05 AM
#RahulVerma
#RahulVerma - avatar
+ 2
It will not. it will be better to frame youtube videos. The iframe will work very fine.
5th Dec 2017, 10:07 AM
Suhail P Salim
Suhail P Salim - avatar
+ 2
It will, or it won't? 😂
5th Dec 2017, 10:28 AM
janiacodes_
janiacodes_ - avatar
+ 2
Thank you. How about for the <audio>?
5th Dec 2017, 10:39 AM
janiacodes_
janiacodes_ - avatar
+ 2
Ok. Thanks. :)
5th Dec 2017, 10:51 AM
janiacodes_
janiacodes_ - avatar