I'm looking for a way so a certain embed link from youtube/video/other video provider that doesn't have an API
can be wrapped around a HTML5 <video>
tag. And if I'm then able to use the HTML5 features of this tag? I'm looking for something like this:
<video width="560" height="315" controls autoplay>
<iframe width="560" height="315" src="http://www.youtube.com/embed/5qm8PH4xAss" frameborder="0" allowfullscreen></iframe>
</video>
or this:
<video width="640" height="505" controls autoplay>
<object width="640" height="505" type="application/x-shockwave-flash" data="http://www.youtube.com/v/YE7VzlLtp-4">
<param name="movie" value="http://www.youtube.com/v/YE7VzlLtp-4" />
</object>
</video>
I'm actually looking to generalise the video providers embedded video options, I would like to be able to call play(), stop(), ... from javascript
without limiting to only video providers that have specified an API
. I'm basicly looking for something like this: http://www.w3.org/2010/05/video/mediaevents.html