]> _ Git - fluidbook-html5.git/commitdiff
wait #7113 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 9 Oct 2024 17:34:30 +0000 (19:34 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 9 Oct 2024 17:34:30 +0000 (19:34 +0200)
js/libs/fluidbook/fluidbook.audioplayer.js

index 84a42d2208f7c93e26b41d8afbb7ad9c34423183..296707514af65b57854cdaf74c9d827ac240d443 100644 (file)
@@ -104,6 +104,8 @@ FluidbookAudioPlayer.prototype = {
         if (!$(player).prop('autoplay')) {
             if ($(player).data('autoplay') == 2 && this.fluidbook.sound.enabled && this.fluidbook.sound.on) {
                 $(player).prop('autoplay', true);
+                $(player).get(0).autoplay = true;
+                $(player).get(0).play();
             }
         }