From 05287a2e362416e3ad9b9aa0b58df36a2da62080 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Jul 2021 15:11:22 +0200 Subject: [PATCH] Fix player options --- client/src/assets/player/peertube-player-manager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index ba0a6ab80..b071a0938 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts @@ -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 }