zencoder/video-js — Issue #108: Fullscreen in Flash mode causes JS errors and reinstantiates the player in Safari and Firefox
Author: stevecochrane
Created: 2011-12-19 19:40:47+00:00
State: open

My guess is that this is something related to resizing of the Flash object, because the same errors happen for fullscreen mode in both Safari and Firefox, and those have different fullscreen methods (Safari uses the JS Fullscreen API and Firefox uses the full window method).

The specific error text that comes up in my WebKit Inspector and Firebug consoles is something like this:

this.el.vjs_getProperty is not a function (tech.js, line 296)
return _V_.createTimeRange(0, this.el.vjs_getProperty("buffered"));

The reinstantiation of the player is pretty major because you lose track of your progress in the video and you have to start over. Also, if you're like me and you're using a modified version of the Flash fallback to serve preroll ads, for example, then the viewer has to watch the preroll again.

Neither Chrome or IE9 have these same errors, but they're also not quite perfect as the initial poster image is not resized when entering fullscreen. The video is resized just fine when it starts to play, but if you hit fullscreen before playing the video, the poster is not expanded to fill the screen.