0
votes

Exist any posibily to put to video player HTML5 as source a video from youtube?

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>

I want to embed videos from youtube using HTML5 player. I've tried this solution but it's not working.

2
do you have these resources in your computer?neophyte
no, that's what I'm talking..I don't need with resources from computer...I want to use videos from youtube.Uppas1975
@neophyte dude..look on my subject...I saw the answer from that page but won't work for me.Uppas1975
but it's not working. is not enough to help you. If you want help implementing a particular solution, you need to provide details about how you actually tried to implement it and how it didn't work.Grisha Levit

2 Answers

0
votes

TRY USING IFRAMES instead of <video>. I'ts not possible to embed youtube videos using HTMl5 video tag.

Try this it will work

       <iframe type="text/html" 
       width="320" height="240"
       src="http://www.youtube.com/embed/VIDEO_ID"
       frameborder="0">
       </iframe>
0
votes

Your options are outlined in the Developer API for youTube here: https://developers.google.com/youtube/player_parameters

There are restrictions on what you can/can't do with the content they are hosting (they are, after all, paying for storage, bandwidth, transcoding etc), so if you need more flexibility you will need to find your own video hosting solution