+6

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

3/15/2019 8:25:36 AM

Gokul S

9 Answers

New Answer

+20

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!!!-->😊✌

+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😉

+9

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

+7

The only (legitimate) way to show a youtube video on another page is use the embed link than youtube give you

+5

insert the videos direct uniform resource location (URL) in the src to point directly to the video

+5

Gokul S like Jason M.Azizi you should use iframes tag in html5 Take a look this code https://code.sololearn.com/W30dFh6Xw6e3/?ref=app

+3

Insert the video url in the video src Or you an iframe tag and and Paste the url in the iframe src

+2

you have to use YouTube API

0