]> _ Git - fluidbook-html5.git/commitdiff
wait #6573 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Dec 2023 20:30:11 +0000 (21:30 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Dec 2023 20:30:11 +0000 (21:30 +0100)
js/libs/fluidbook/fluidbook.links.js

index 766efeb48d13ef85f1b0eb247143df6996b451b3..1f73004eefcbc585c8bff0a451cf3885af50aa2c 100644 (file)
@@ -1273,7 +1273,14 @@ FluidbookLinks.prototype = {
             return;
         }
 
-        if ($(link).is('[data-animations]')) {
+        if ($(link).find('.videoContainer').length > 0) {
+            let v = $(link).find('video').get(0);
+            if (v.paused) {
+                v.play();
+            } else {
+                v.pause();
+            }
+        } else if ($(link).is('[data-animations]')) {
             this.animateContentLink($(link), false, true);
         } else {
             var a = $(link).find('a:eq(0)');