ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix http player defaulting to audio resolution
Chocobozzz1a5b67b66d83
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.tsindex 6f5fbe4c97..e27a163909 100644--- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts+++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts@@ -557,7 +557,8 @@ class WebTorrentPlugin extends Plugin {private pickAverageVideoFile () {if (this.videoFiles.length === 1) return this.videoFiles[0]- return this.videoFiles[Math.floor(this.videoFiles.length / 2)]+ const files = this.videoFiles.filter(f => f.resolution.id !== 0)+ return files[Math.floor(files.length / 2)]}private stopTorrent (torrent: WebTorrent.Torrent) {