Skip to content

Commit

Permalink
Fix play of videos on ios
Browse files Browse the repository at this point in the history
When the user already played a video
  • Loading branch information
Chocobozzz committed Aug 27, 2020
1 parent 23f5be5 commit 1a568b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/app/+videos/+video-watch/video-watch.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
}

async ngOnInit () {
PeertubePlayerManager.initState()

this.serverConfig = this.serverService.getTmpConfig()

this.configSub = this.serverService.getConfig()
Expand Down
4 changes: 4 additions & 0 deletions client/src/assets/player/peertube-player-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1a568b6

Please sign in to comment.