BigVideo.js
BigVideo.js copied to clipboard
Doesn't show altSource in Opera
Opera should receive the same video that Firefox gets. instead, it gets the default due to a nasty user agent sniff.
I do accept pull requests. :)
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.
@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
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
});
}