user1477955
user1477955

Reputation: 1670

HTML5 video tag youtube

I found a solution to put a youtube link into a HTML tag, but it does not work, the video is not displayed:

<video controls="controls" x-webkit-airplay="allow" class="video-stream" 
  src="http://youtu.be/8sUr5uBFInQ"></video>

Upvotes: 1

Views: 391

Answers (1)

Zombo
Zombo

Reputation: 1

According to this blog, you need a different syntax.

<iframe class="youtube-player" type="text/html" width="640" height="385" 
  src="http://www.youtube.com/embed/VIDEO_ID" allowfullscreen frameborder="0">
</iframe>

Upvotes: 2

Related Questions