I edited the replaceYoutube() function to center the video.

NEWCODE:

function replaceYoutube(fmt) {
   vidHtml = "<video src='" + generateFLV(fmt) + "' controls
width='80%' height='80%'>Video Element</video>";
   document.getElementById("watch-player-div").innerHTML = vidHtml;
   document.getElementById("watch-player-div").align="center";
}

On Nov 18, 4:19 am, PrashantV <[email protected]> wrote:
> Youtube rarely loads properly on Chrome on OSX, so I decided to write
> an extension to replace the SWF player with the HTML5 <video> element.
> This was the first extension I'd written for Chrome, but I found it
> really easy and simple, so kudos to the developers for a great API.
>
> http://github.com/prashantv/VideoTube/
>
> Code is there, it's still very alpha quality, and I'd like to clean up
> the hack I use to insert the "SD" "HD" buttons in, before packaging it
> up into a crx.
>
> Let me know if you want to work on it as well.

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=.


Reply via email to