]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix player options
authorChocobozzz <me@florianbigard.com>
Mon, 12 Jul 2021 13:11:22 +0000 (15:11 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 12 Jul 2021 13:14:33 +0000 (15:14 +0200)
client/src/assets/player/peertube-player-manager.ts

index ba0a6ab801f455878a8e2831dcac97d5083e889d..b071a093856f0610abf8fd72844ba685b51709fa 100644 (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
     }