whatwg video support for your phone

Above is a video that I took of Chris Double’s awesome whatwg video work running on my N810. Note that I didn’t have to do anything special to get this to work. I took the two patches, applied them to my trunk mozilla build and ran them through the ARM toolchain. The code works out of the box with the gstreamer backend that’s included on the N810.

I thought that it was important to show that we’re not just serious about adding video support to Mozilla, but that it can extend to a wide range of devices. If we want to have a world that includes rich internet applications, we have to be sure that includes phones and lower end devices as well.

The video itself is a speech that Cory Doctorow gave at the 2006 Red Hat Summit about copyright and intellectual property. I thought it was fitting.

If you’re a crazy maemo hacker you can get a copy of the build from my people page that includes gstreamer support. Follow Brad’s instructions to get a browser front end once you’re installed xulrunner somewhere. If you want to play a video you should make sure that you’ve encoded it for the N810 using a decent script to take advantage of the hardware accel on the device. Hack up an html page, embed the video like on Chris’ test page and try it out.

  1. Shawn Wilsher’s avatar

    Who needs flash for the mobile phone now!

  2. Paula’s avatar

    > I thought that it was important to show that we’re not just
    > serious about adding video support to Mozilla but that it can
    > extend to a wide range of devices.

    Making Ogg the baseline codec will indeed allow this and more. Theora, the video codec, is known for being much less CPU intensive than H264, which means portable devices won’t be left behind in the revolution to come!

  3. Al Billings’s avatar

    If only the tools for encoding video to Theora didn’t suck so much…

  4. James Henstridge’s avatar

    What would be even cooler would be if you wrapped the YouTube flash element with a element :)

    Then people could marvel at Gecko’s tag support on mobile browsers using Gecko’s support.

  5. James Henstridge’s avatar

    That previous comment didn’t come out too well (the tag names were stripped rather than escaped). I was suggesting wrapping the Youtube flash embed with a video tag, so that the video could be viewed in browsers supporting the standard.

  6. Chris Double’s avatar

    James, I have the video on my site using the video element. The initial startup of usage of the video element is going to be the toughest. It’s so easy to use flash :)

  7. Silvia Pfeiffer’s avatar

    The video that you show – is that encoded in MPEG4/MP3? It would be interesting to see a comparison of codecs at that small bitrate on a phone, including Dirac and Theora.

  8. blizzard’s avatar

    Silvia – That video that I show was an ogg file that I re-encoded into mp4 for the actual N810. The N810 has hardware accel for that format so I chose it. I would also love to see bitrate and comparison comparisons for those devices. I have no idea where Theora would fall into that.

  9. Henri Sivonen’s avatar

    How does the GStreamer patch handle the RFC 4281-based alternative selection mechanism of HTML5?

  10. Chris Double’s avatar

    Henri, are you talking about the ‘media’ attribute on the ’source’ elemenet? If so that is currently not implemented in the video element patch.

  11. Henri Sivonen’s avatar

    No, I mean the ‘type’ attribute on the ’source’ element (with the ‘codecs’ parameter).