This demo uses an experimental HTML5 video wrapper for the YouTube IFrame API called HTMLYouTubeVideoElement.js and x-tag.js in order to create a custom <x-video> element. The <x-video> element works just like a <video> element, but uses YouTube instead of a built-in decoder
The code looks like this:
<x-video id="video"
width="400"
height="300"
src="http://www.youtube.com/watch?v=nfGV32RNkhw"
loop
autoplay>
</x-video>
You can look at the x-video.js code, and here is the running <x-video> element this produces:
Video Credit: RiP Trailer: A Remix Manifesto by Brett Gaylor