From 43c66a91dfe5b8e101047b815ab2da8512a00904 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 29 Nov 2019 14:10:24 +0100 Subject: Add ability to disable P2P in HLS player too --- client/src/assets/player/webtorrent/webtorrent-plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/assets/player/webtorrent/webtorrent-plugin.ts') diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts index 656a32f49..5101b5162 100644 --- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts @@ -11,7 +11,7 @@ import { getAverageBandwidthInStore, getStoredMute, getStoredVolume, - getStoredWebTorrentEnabled, + getStoredP2PEnabled, saveAverageBandwidth } from '../peertube-player-local-storage' import { VideoFile } from '@shared/models' @@ -77,7 +77,7 @@ class WebTorrentPlugin extends Plugin { // Disable auto play on iOS this.autoplay = options.autoplay && this.isIOS() === false - this.playerRefusedP2P = !getStoredWebTorrentEnabled() + this.playerRefusedP2P = !getStoredP2PEnabled() this.videoFiles = options.videoFiles this.videoDuration = options.videoDuration -- cgit v1.2.3