Verified Commit 1a568b6f authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix play of videos on ios

When the user already played a video
parent 23f5be5e
......@@ -117,6 +117,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
}
async ngOnInit () {
PeertubePlayerManager.initState()
this.serverConfig = this.serverService.getTmpConfig()
this.configSub = this.serverService.getConfig()
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment