aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-videojs-plugin.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-18 18:19:35 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-18 18:19:35 +0200
commit4dd551a06642351786c28d39fe3fe29939baca54 (patch)
tree2315925878e5483b20bb6f37b84af50e2d5df3ec /client/src/assets/player/peertube-videojs-plugin.ts
parent49347a0a8b64559192d8f29f1237308025a48fd4 (diff)
downloadPeerTube-4dd551a06642351786c28d39fe3fe29939baca54.tar.gz
PeerTube-4dd551a06642351786c28d39fe3fe29939baca54.tar.zst
PeerTube-4dd551a06642351786c28d39fe3fe29939baca54.zip
Fix embed that does not start on firefox
Diffstat (limited to 'client/src/assets/player/peertube-videojs-plugin.ts')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts
index 090cc53ba..7cf3ea6cc 100644
--- a/client/src/assets/player/peertube-videojs-plugin.ts
+++ b/client/src/assets/player/peertube-videojs-plugin.ts
@@ -216,7 +216,12 @@ const peertubePlugin = function (options: PeertubePluginOptions) {
216 if (options.autoplay === true) { 216 if (options.autoplay === true) {
217 player.updateVideoFile() 217 player.updateVideoFile()
218 } else { 218 } else {
219 player.one('play', () => player.updateVideoFile()) 219 player.one('play', () => {
220 // Pause, we wait the video to load before
221 player.pause()
222
223 player.updateVideoFile(undefined, () => player.play())
224 })
220 } 225 }
221 226
222 setInterval(() => { 227 setInterval(() => {