Fix play of videos on ios

When the user already played a video
pull/3127/head
Chocobozzz 2020-08-27 08:39:44 +02:00
parent 23f5be5e24
commit 1a568b6fca
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 6 additions and 0 deletions

View File

@ -117,6 +117,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
}
async ngOnInit () {
PeertubePlayerManager.initState()
this.serverConfig = this.serverService.getTmpConfig()
this.configSub = this.serverService.getConfig()

View File

@ -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