Video.js Blog

Steve Heffernan2012-01-30

Version 3.1 Update

This is the first release since the initial 3.0 launch, aside from some hotfixes that went out immediately. It includes a number of fixes for things that users in the forums found right off the bat.

One feature thats optional for testing in this release is iFrame Mode for Flash. One the of the unique things about Video.js is we havent built any controls into our Flash player, and instead use HTML and CSS to create the controls for the Flash side as well. This keeps the experience consistent and the Flash player very lightweight, however theres a number of issues that you run into with Flash when you take an approach like this. If youve ever tried to resize the parent of a Flash object, or hide a Flash object and then show it again, youve probably run into the issue of Flash reloading in Firefox. This is a bug thats been in Firefox for quite a long time however it looks like it might be fixed by version 13 (currently 9). To add on top of this, with the new browser fullscreen API, the other browsers now also reload Flash when you go to native fullscreen.

Weve found a bit of a fix where if you embed the Flash object in an iframe first, it can get around the reloading in some of these cases. So in the new version theres an option to turn this on and try it.

https://gist.github.com/4092929.js?file=iframe-mode.js

Well be doing some more testing to make sure its stable before we push it out to everyone.

Heres the full change log for the release.

3.1.0 / 2012-01-30 / leonardo

  • Added CSS fix for Firefox 9 fullscreen (in the rare case that its enabled)
  • Replaced swfobject with custom embed to save file size.
  • Added flash iframe-mode, an experimental method for getting around flash reloading issues.
  • Fixed issue with volume knob position. Improved controls fading.
  • Fixed ian issue with triggering fullscreen a second time.
  • Fixed issue with getting attributes in Firefox 3.0
  • Escaping special characters in source URL for Flash
  • Added a check for if Firefox is enabled which fixes a Firefox 9 issue
  • Stopped spinner from showing on stalled events since browsers sometimes dont show that theyve recovered.
  • Fixed CDN Version which was breaking dev.html
  • Made full-window mode more independent
  • Added rakefile for release generation

Cheers,
-Heff