+ 2
AUDIO IN HTML
I wrote this code but it's not working why? <audio controls autoplay loop> <source src=" https://youtu.be/uOIHHMnI_Ig " type="audio/mpeg"> Audio element is not supported by your browser. </audio>
14 ответов
+ 9
The reason is the url is pointing to a resource which refer to a webpage, but not a media as the Youtube video was embeded in the webpage. 😉
+ 5
You need to put an actually video file. Not some Youtube link. Try to download this video, and upload this somewhere online. Then use that link here.
+ 5
the gamer Just head to Youtube desktop site and open the video.
The code example is available by clicking SHARE and EMBED. 😉
+ 4
have the results came yet
+ 4
the gamer You may open the Youtube video and copy the embed video url to display it via iframe. 😉
+ 4
I think you should go with this
problem may be solved in my opinion https://www.sololearn.com/Discuss/1291724/?ref=app
+ 4
Zephyr Koo it sucks on iframe
+ 4
Yesh Jadav Yes iframe is a little bit inconvenient sometimes but it's possible to make it responsive. 😉
+ 4
yes it looks pretty good on higher resolutionZephyr Koo check out my solution
+ 3
ok thanks
+ 2
Yesh Jadav not yet
+ 2
ok thanks
+ 2
when you have time pls you can send me an example of code
+ 1
Como puedo poner de fondo un audio de youtube?