0

Please i need help.. i've been trying to run dis code.. it ain't working.. is there anything wrong with it

<video controls autoplay loop> <source src="https://m.youtube.com/watch?v=U0_hoe7uo3Y"" type="video/mp4"> <source src="https://m.youtube.com/watch?v=U0_hoe7uo3Y" type="video/ogg"> Video is not supported by your browser </video>

22nd Mar 2019, 11:24 PM
Ayo Moses 🇳🇬
Ayo Moses 🇳🇬 - avatar
4 Respostas
+ 5
Using the source tag, you can't link to videos online to play on your website. How it's supposed to work is it's meant to take a video that's apart of your project (if it's in the same folder as the code you would just need the name of the file, or if you're working on your computer whatever plan leads to the video) for it to play. If you want to play YouTube videos I would recommend using the iframe tag instead (which displays a website within your website)
23rd Mar 2019, 12:32 AM
Faisal
Faisal - avatar
+ 1
Ayo Moses I just clicked on the video and it works. Pls send a link to the code let me see what i can do...
22nd Mar 2019, 11:49 PM
Jella
Jella - avatar
+ 1
iframe Use computer to view YouTube. Click embed, not share. In embed there is tutorial on how to add YouTube video to your html https://code.sololearn.com/W99Z86dl31t5/?ref=app
23rd Mar 2019, 7:16 AM
Gordon
Gordon - avatar
23rd Mar 2019, 2:21 AM
Ayo Moses 🇳🇬
Ayo Moses 🇳🇬 - avatar