Comment 2 for bug 412647

Revision history for this message
In , Chris Double (doublec) wrote :

Created an attachment (id=270987)
First stab at impementing <video> element

This patch is a start at implementing the WHATWG <video> element. It successfully plays Ogg Theora videos on Mac, Windows and Linux with some issues which I'm working on.

On Mac OS X videos play in debug ok, but there is no sound in optimized builds. On Windows sound works fine in optimized builds. On Linux (only 64 bit linux tested so far) it plays slowly with no sound.
In all cases on optimized builds Firefox segfaults on exit. Problems also occur if streaming video is played and played over a slow link.

I know about all those issues and am working on them. I'm also using channels some things in thread unsafe ways (like channels) which I am now working on correcting.

But it does play videos for those so here's the first patch attempt for those that want to try it out. So in summary, use a debug until I've corrected these issues over the next few days.

This patch does not include the various Ogg and Portaudio libraries. That file is about 20MB so I've put it separately here: http://www.double.co.nz/video_test/third_party_modules.patch.gz

Apply the third party modules patch first, and then this one. Some example usage is available here: http://www.double.co.nz/video_test

You can download the example usage HTML and ogg files: http://www.double.co.nz/video_test/video_test.tar.gz

Another thing I plan to add is a configure option to not include the video option.