Play() in fullscreen send an error with flash fallback #210

Closed
Isammoc opened this Issue Aug 2, 2012 · 5 comments

Comments

Projects
None yet
4 participants

Isammoc commented Aug 2, 2012

Hi,

I called requestFullScreen() and directly play() on videojs when a user clicked on my own poster (not an image, so I cannot use poster in videojs mode).

In chrome, all is ok: video is fullscreen and playing.
In firefox, with flash fallback, video went fullscreen but didn't play.
An error in the console said : "this.tech.ready is not a function"

Reproduced on:
Firefox 14.0.1, Shockwave Flash plugin 11.2, Ubuntu 12.04
Firefox 14.0.1, Shockwave Flash plugin 11.1, Windows 7
Firefox 14.0.1, Shockwave Flash plugin 11.3, Windows 7

Démo : http://jsfiddle.net/9Xtvh/show/
Sources : http://jsfiddle.net/9Xtvh/

Isammoc commented Aug 2, 2012

A workaround I found is to delay the play() call about 2ms after the requestFullScreen()

Something like this fiddle works:
Démo : http://jsfiddle.net/9Xtvh/2/show/
Sources : http://jsfiddle.net/9Xtvh/2/

Isammoc commented Aug 27, 2012

Here an example after the pull request modification :

with jQuery and a <button id="playInFullscreen"> element

    $('#playInFullscreen').on('click', function() {
        videojs.requestFullScreen();
        videojs.ready(function() { videojs.play(); } );
    });

ddadick commented Dec 26, 2012

V.options.flash.iFrameMode=true;

and no problem

milax commented Apr 30, 2013

ddadick, thank you!
Isammoc, your fix is not working :(

Owner

heff commented Nov 15, 2013

I'm not sure what the specific issue with this was in version 3, but it's not happening for me in version 4 now. Firefox has also drastically improved their fullscreen + flash support, so that was more likely the fix here.

heff closed this Nov 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment