How to play you tube videos directly in htm5 video element ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 8

How to play you tube videos directly in htm5 video element ?

15th Mar 2019, 8:25 AM
Gokul S
Gokul S - avatar
8 Respostas
+ 31
Like This: <h1>My Media</h1> <iframe height="150" width="300" src="https://www.youtube.com/embed/Q6_5InVJZ88" allowfullscreen frameborder="0"></iframe> <!--The src is up to you!!!-->šŸ˜ŠāœŒ
16th Mar 2019, 4:28 PM
KĶœĶ”É©nÉ¢ćƒ»ļ¾‘ļ½šiļ½ši šŸ–¤
KĶœĶ”É©nÉ¢ćƒ»ļ¾‘ļ½šiļ½ši šŸ–¤ - avatar
+ 13
1:Take a note of theĀ videoĀ id. 2:Define an <iframe>Ā elementĀ in your web page. 3:Let theĀ srcĀ attribute point to theĀ videoĀ URL. // i think it may help you brošŸ˜‰
15th Mar 2019, 8:44 AM
Max Andal
Max Andal - avatar
+ 10
You may find this helpful: https://stackoverflow.com/questions/5157377/show-youtube-video-source-into-html5-video-tag However, I was not able to get the solution to work in the Code Playground (video won't play). I would recommend an iframe instead. https://www.sololearn.com/learn/338/?ref=app You may also find this helpful: https://code.sololearn.com/W2dQpsafNWav/?ref=app
16th Mar 2019, 2:27 AM
Janningā­
Janningā­ - avatar
+ 7
The only (legitimate) way to show a youtube video on another page is use the embed link than youtube give you
15th Mar 2019, 8:41 AM
KrOW
KrOW - avatar
+ 5
insert the videos direct uniform resource location (URL) in the src to point directly to the video
15th Mar 2019, 3:44 PM
George S Mulbah II
George S Mulbah II - avatar
+ 3
Insert the video url in the video src Or you an iframe tag and and Paste the url in the iframe src
16th Mar 2019, 11:04 AM
Alpha
Alpha - avatar
+ 2
you have to use YouTube API
15th Mar 2019, 9:34 PM
TOURE SOULEYMANE
TOURE SOULEYMANE - avatar
0
2
16th Mar 2019, 4:59 AM
Ų³Ų§Ų³Ų§Ł† Ų“ŪŒŲØŲ§Ł†ŪŒ