Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix play of videos on ios

Chocobozzz1a568b6fcae4
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 f048edec4c..8e6d62a09c 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 4d72523f7c..af044c864f 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