Youtube without Flash Auto

By YoutubeWithoutFlash Last update Jan 30, 2011 — Installed 97,144 times.

HTML 5?

in
Subscribe to HTML 5? 4 posts, 3 voices



ian kellogg User
ChromeWindows

You guys should consider replacing the command for the embedded video with the html 5 tags for <video></video>

 
waldir Scriptwright
FirefoxX11

I tried to do it, but for some reason it's not working. if someone manages to do it, please let me know. Here's what I tried, for reference:

playerDiv.innerHTML = '<video src="' + video_url_normal + '&begin=0' + '" height="388" width="640"><embed src="' + video_url_normal + '&begin=0' +'" height="388" width="640"></embed></video>

 
YoutubeWitho... Script's Author
FirefoxX11

As far as I know, Firefox 3.5 supports only the Ogg Vorbis video codec at the moment, while Youtube uses (at least mostly, I think) H.264. That's why it doesn't work with the HTML5 tag.

 
waldir Scriptwright
FirefoxX11

You're right, indeed: "Currently, Ogg Theora, Ogg Vorbis, and WAV format media is supported." (developer.mozilla.org)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel