Commit fec1a77d authored by Jonas Heinrich's avatar Jonas Heinrich

fix chrome video fullscreen

parent 14f6f1d8
...@@ -32,8 +32,9 @@ if (typeof Object.create !== "function") { ...@@ -32,8 +32,9 @@ if (typeof Object.create !== "function") {
base.options = $.extend({}, $.fn.videre.options, options); base.options = $.extend({}, $.fn.videre.options, options);
var base = this; var base = this;
base.decodeMedia(el); base.decodeMedia(el);
var screen_change_events = "webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange"; var screen_change_events = "webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange";
$(document).off(screen_change_events);
$(document).on(screen_change_events, function () { $(document).on(screen_change_events, function () {
base.isFullscreen(); base.isFullscreen();
console.log("fullscreen change event"); console.log("fullscreen change event");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment