BigVideo.js icon indicating copy to clipboard operation
BigVideo.js copied to clipboard

Doesn't show altSource in Opera

Open fearphage opened this issue 11 years ago • 4 comments

Opera should receive the same video that Firefox gets. instead, it gets the default due to a nasty user agent sniff.

fearphage avatar Feb 11 '13 20:02 fearphage

I do accept pull requests. :)

johnpolacek avatar Feb 11 '13 21:02 johnpolacek

I´m really not into JavaScript but somehow I managed to get this working, I think:

In the mentioned line I just added 'opera' seperated by a comma behind the 'firefox' at the end of the line: ('firefox', 'opera')

Seems to work perfectly with mp4 and webm.

tideg avatar Apr 01 '13 16:04 tideg

@johnpolacek This actually does not work at all on Opera. Even though Opera does support .ogv and .webm The demos currently in use do not display any video. This also includes the same results for my local environment.

Browser:    Opera
Version:    17.0.1241.53
Update stream:  Stable
System: Mac OS X 10.9.0 64-bit

screen shot 2013-10-29 at 5 14 15 pm

grayghostvisuals avatar Oct 29 '13 21:10 grayghostvisuals

Here's what I'm currently using to test for Opera

var Opera = (navigator.userAgent.match(/Opera|OPR\//) ? true : false);

if ( Modernizr.touch )  {
    // fallback stuff for touch devices
} else if(Opera) {
    // load a full screen background image here
} else {
    BV.show('vids/sequence.mp4', {
        altSource: 'vids/sequence.ogv',
        ambient: true
    });
}

grayghostvisuals avatar Oct 29 '13 23:10 grayghostvisuals