Fix embed that does not start on firefox
This commit is contained in:
parent
49347a0a8b
commit
4dd551a066
|
@ -216,7 +216,12 @@ const peertubePlugin = function (options: PeertubePluginOptions) {
|
|||
if (options.autoplay === true) {
|
||||
player.updateVideoFile()
|
||||
} else {
|
||||
player.one('play', () => player.updateVideoFile())
|
||||
player.one('play', () => {
|
||||
// Pause, we wait the video to load before
|
||||
player.pause()
|
||||
|
||||
player.updateVideoFile(undefined, () => player.play())
|
||||
})
|
||||
}
|
||||
|
||||
setInterval(() => {
|
||||
|
|
Loading…
Reference in New Issue