- // Pause, we wait the video to load before
- player.pause()
-
- player.updateVideoFile(undefined, () => player.play())
+ // On firefox, we need to wait to load the video before playing
+ if (navigator.userAgent.toLowerCase().indexOf('firefox') !== -1) {
+ player.pause()
+ player.updateVideoFile(undefined, () => player.play())
+ return
+ }
+
+ player.updateVideoFile(undefined)