diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index f048edec4..8e6d62a09 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts @@ -117,6 +117,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy { } async ngOnInit () { + PeertubePlayerManager.initState() + this.serverConfig = this.serverService.getTmpConfig() this.configSub = this.serverService.getConfig() diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index 4d72523f7..af044c864 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts @@ -119,6 +119,10 @@ export class PeertubePlayerManager { private static alreadyPlayed = false + static initState () { + PeertubePlayerManager.alreadyPlayed = false + } + static async initialize (mode: PlayerMode, options: PeertubePlayerManagerOptions, onPlayerChange: (player: videojs.Player) => void) { let p2pMediaLoader: any