From d6b7a6ed991b6b49c7cdac9a68378701cdd31c1b Mon Sep 17 00:00:00 2001 From: David LaPalomento Date: Fri, 13 Jun 2014 11:30:58 -0400 Subject: [PATCH] Count stageclick events from the SWF as user activity IE11 on Win8.1 RT does not report click events on the SWF object. The SWF already triggers stageclick events whenever a click/touch is detected however, so we can use those to keep the control bar from hiding forever. --- src/js/media/flash.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/media/flash.js b/src/js/media/flash.js index 83eaf3246c..7b9dd70536 100644 --- a/src/js/media/flash.js +++ b/src/js/media/flash.js @@ -114,6 +114,10 @@ vjs.Flash = vjs.MediaTechController.extend({ }); } + // native click events on the SWF aren't triggered on IE11, Win8.1RT + // use stageclick events triggered from inside the SWF instead + player.on('stageclick', player.reportUserActivity); + // Flash iFrame Mode // In web browsers there are multiple instances where changing the parent element or visibility of a plugin causes the plugin to reload. // - Firefox just about always. https://bugzilla.mozilla.org/show_bug.cgi?id=90268 (might be fixed by version 13)