Why video didn't play? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
20th May 2023, 10:18 PM
Losiyana
Losiyana - avatar
10 Answers
+ 4
Because a YouTube link is not an mp4. Google how to embed YouTube videos, they make it pretty easy.
20th May 2023, 11:48 PM
Orin Cook
Orin Cook - avatar
+ 4
Use this tag for embedding YouTube videos in HTML <iframe width="320" height="260" src="YouTube vid link"> Child elements outputed when embedding fails </iframe>
21st May 2023, 10:07 AM
Purple Requiem
Purple Requiem - avatar
+ 3
Oh sorry you have to use the link provided by embedded link not YouTube link itself.
21st May 2023, 11:54 AM
Purple Requiem
Purple Requiem - avatar
+ 1
If you want to add a video which was posted in YouTube, then you should use the <iframe> tag. If you want to add a downloaded video, then you should use the <video> tag. This is the syntax for the <ifame> tag: <iframe type=mp3/wav width = "100" height = "100" src = "https://youtu.be/zfSFK8CLTPw"></iframe> Downloaded video syntax for the <video> tag: <video width = "100" height = "100" controls> <source src = "downloaded_video.mp3" type = "video/mp4"> Make sure that the video is present in your PC and if the address of the video is correct </video> Hope this helps.
22nd May 2023, 2:15 PM
Danish Zubair
Danish Zubair - avatar
0
I tried still it didn't work
21st May 2023, 11:51 AM
Losiyana
Losiyana - avatar
0
I just now add my downloaded video..but it didn't work..by the way i'm using mobile not pc
22nd May 2023, 3:03 PM
Losiyana
Losiyana - avatar
0
Share the code again, with downloaded song.
22nd May 2023, 6:35 PM
Danish Zubair
Danish Zubair - avatar
0
It is not in mp4
22nd May 2023, 7:50 PM
Dinesh
Dinesh - avatar
0
I converted my video into mp4 type...but how can i get that URL?
23rd May 2023, 9:13 AM
Losiyana
Losiyana - avatar
0
Upload it on a url maker, and copy the url.
23rd May 2023, 12:33 PM
Danish Zubair
Danish Zubair - avatar