define(["core/js/adapt","libraries/mediaelement-and-player"],function(t){var r=$.extend({},mejs.MediaElementPlayer.prototype);$.extend(mejs.MediaElementPlayer.prototype,{detectFullscreenMode:function(){var e=this.getVendorPrefix(),n="on"+e+"fullscreenchange";return null===document[n]&&(document[n]=function(){null!==document[""===e?"fullscreenElement":e+"FullscreenElement"]?($.inview.lock("mediaelement"),t.trigger("media:fullscreen:enter")):($.inview.unlock("mediaelement"),t.trigger("media:fullscreen:exit"))}),r.detectFullscreenMode.apply(this,arguments)},getVendorPrefix:function(){var e=t.device.browser;return"internet explorer"===e?"ms":"microsoft edge"===e||"safari"===e?"webkit":""}})});