Browse Source

Fix play of videos on ios

When the user already played a video
tags/v2.4.0-rc.1
Chocobozzz 1 month ago
parent
commit
1a568b6fca
No known key found for this signature in database GPG Key ID: 583A612D890159BE
2 changed files with 6 additions and 0 deletions
  1. +2
    -0
      client/src/app/+videos/+video-watch/video-watch.component.ts
  2. +4
    -0
      client/src/assets/player/peertube-player-manager.ts

+ 2
- 0
client/src/app/+videos/+video-watch/video-watch.component.ts 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()


+ 4
- 0
client/src/assets/player/peertube-player-manager.ts 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



Loading…
Cancel
Save