Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_videoplayer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn <bjoern.korella@markenfilm-crossing.de>2015-11-20 18:54:36 +0300
committerBjörn <bjoern.korella@markenfilm-crossing.de>2015-11-20 18:54:36 +0300
commit5b1503f72670a5ccfa391051c4638693a841794a (patch)
treec1577cf737363023b20d5b1d465d2f64f608e2a4 /js/viewer.js
parent13b1f8e23f0a661eacc38066ed61609a7b55916b (diff)
show and hide close button with the rest of the UI
Diffstat (limited to 'js/viewer.js')
-rwxr-xr-xjs/viewer.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/viewer.js b/js/viewer.js
index 4eeb2c6..9bec2bc 100755
--- a/js/viewer.js
+++ b/js/viewer.js
@@ -27,6 +27,13 @@ var videoViewer = {
$('#videoplayer_overlay').fadeIn('fast');
// autoplay
var vjsPlayer = videojs("my_video_1");
+ // show and hide close button with the rest of the UI
+ vjsPlayer.on('userinactive', function () {
+ $('#box-close').fadeOut(1000, "easeInOutExpo");
+ });
+ vjsPlayer.on('useractive', function () {
+ $('#box-close').fadeIn(100, "easeInOutExpo");
+ });
vjsPlayer.play();
},
hide : function() {