]> _ Git - fluidbook-html5.git/commitdiff
fix #2366 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 23 Nov 2018 15:46:34 +0000 (16:46 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 23 Nov 2018 15:46:34 +0000 (16:46 +0100)
js/libs/fluidbook/fluidbook.sound.js

index c3f6b2b3174fa7d3a15b61595fa84f80af551091..e24fa049ab60c86f3f8c946bc8b38e0fe918e7f1 100644 (file)
@@ -111,7 +111,11 @@ FluidbookSound.prototype = {
 
         try {
             this.audios[sound].volume = 1;
-            this.audios[sound].fastSeek(0);
+            if (this.audios[sound].fastSeek !== undefined) {
+                this.audios[sound].fastSeek(0);
+            } else {
+                this.audios[sound].currentTime = 0;
+            }
             this.audios[sound].play();
         } catch (e) {
             console.log(e);