From 1a568b6fcae4cd64458bb2d53543bffd1a3baabc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 27 Aug 2020 08:39:44 +0200 Subject: Fix play of videos on ios When the user already played a video --- client/src/assets/player/peertube-player-manager.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/assets') 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 -- cgit v1.2.3