1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-30 09:06:49 +02:00

Merge pull request #128 from rainboxx/patch-1

Changed checking whether fullscreen API is available or not.  Firefox 9 ...
This commit is contained in:
Heff 2012-01-16 15:01:54 -08:00
commit 61aad619a8

View File

@ -747,7 +747,7 @@ _V_.Player = _V_.Component.extend({
_V_.each(["moz", "webkit"], function(prefix){
if (document[prefix + "CancelFullScreen"] !== undefined) {
if ((prefix != "moz" || document.mozFullScreenEnabled) && document[prefix + "CancelFullScreen"] !== undefined) {
requestFn = prefix + "RequestFullScreen";
cancelFn = prefix + "CancelFullScreen";
eventName = prefix + "fullscreenchange";