mirror of https://github.com/Chocobozzz/PeerTube
parent
23f5be5e24
commit
1a568b6fca
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue