Fix player options

pull/4214/head
Chocobozzz 2021-07-12 15:11:22 +02:00
parent b980bcff7b
commit 05287a2e36
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 2 deletions

View File

@ -401,8 +401,7 @@ export class PeertubePlayerManager {
videoFiles: webtorrentOptions.videoFiles.length !== 0
? webtorrentOptions.videoFiles
// The WebTorrent plugin won't be able to play these files, but it will fallback to HTTP mode
: p2pMediaLoaderOptions.videoFiles,
fallbackVideoFiles: p2pMediaLoaderOptions.videoFiles,
: p2pMediaLoaderOptions?.videoFiles || [],
startTime: commonOptions.startTime
}