Skip to content

Commit

Permalink
FLUID-4661: Adding support for Chrome as well
Browse files Browse the repository at this point in the history
  • Loading branch information
anvk committed Aug 14, 2012
1 parent 704fc0d commit a919ede
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions js/VideoPlayer.js
Expand Up @@ -450,13 +450,19 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
};

// FLUID-4661: This should be removed once a proper fullscreen mode is implemented
document.addEventListener("mozfullscreenchange", function () {
if (!document.mozFullScreen) {
that.applier.fireChangeRequest({
path: "fullscreen",
value: false
});
}
fluid.each({
"fullscreenchange": "fullscreen",
"mozfullscreenchange": "mozFullScreen",
"webkitfullscreenchange": "webkitIsFullScreen"
}, function (value, key) {
document.addEventListener(key, function () {
if (!document[value]) {
that.applier.fireChangeRequest({
path: "fullscreen",
value: false
});
}
});
});
};

Expand Down

0 comments on commit a919ede

Please sign in to comment.