]> _ Git - fluidbook-html5.git/commitdiff
wait #8010 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 Feb 2026 10:41:48 +0000 (11:41 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 Feb 2026 10:41:48 +0000 (11:41 +0100)
js/libs/fluidbook/fluidbook.video.js

index 1eab758f736bce16f06935e6d1af1d50517ed37a..6ee9d4451a793c6f8126a74cd798c9a2566f3e9c 100644 (file)
@@ -138,7 +138,6 @@ FluidbookVideo.prototype = {
             loop = false;
         }
 
-
         var hidelinksonplay = $(e).data('hidelinksonplay') == undefined || $(e).data('hidelinksonplay') === '' ? [] : $(e).data('hidelinksonplay').split(',');
 
         // console.log('Initialising video ID: ' + id, statsType, statsName);
@@ -425,7 +424,6 @@ FluidbookVideo.prototype = {
                 if (settings.paused) {
                     player.pause();
                     player.one('play', function () {
-                        console.log(':!!!');
                         sendPlayEvent();
                     });
                 } else {
@@ -660,7 +658,7 @@ FluidbookVideo.prototype = {
         var id = player.id();
 
         // Save the current player info if it has started
-        if (player.hasStarted()) {
+        if (player.hasStarted() && player.controls()) {
             fluidbook.video.players[id] = {
                 currentTime: player.currentTime(),
                 volume: player.volume(),
@@ -692,7 +690,6 @@ FluidbookVideo.prototype = {
     },
 
     isVideoFullscreen: function () {
-
         return this.fullscreenActive;
 
         // var fullscreenPlayerFound = false;