diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-29 14:10:24 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-29 14:14:47 +0100 |
commit | 43c66a91dfe5b8e101047b815ab2da8512a00904 (patch) | |
tree | 6a5d9e439e280d535baf48171c84f91be59909b9 /client/src/assets/player/webtorrent/webtorrent-plugin.ts | |
parent | 20f1ec8d9d356bf961d3672c3ec771745fd4ce36 (diff) | |
download | PeerTube-43c66a91dfe5b8e101047b815ab2da8512a00904.tar.gz PeerTube-43c66a91dfe5b8e101047b815ab2da8512a00904.tar.zst PeerTube-43c66a91dfe5b8e101047b815ab2da8512a00904.zip |
Add ability to disable P2P in HLS player too
Diffstat (limited to 'client/src/assets/player/webtorrent/webtorrent-plugin.ts')
-rw-r--r-- | client/src/assets/player/webtorrent/webtorrent-plugin.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
11 | getAverageBandwidthInStore, | 11 | getAverageBandwidthInStore, |
12 | getStoredMute, | 12 | getStoredMute, |
13 | getStoredVolume, | 13 | getStoredVolume, |
14 | getStoredWebTorrentEnabled, | 14 | getStoredP2PEnabled, |
15 | saveAverageBandwidth | 15 | saveAverageBandwidth |
16 | } from '../peertube-player-local-storage' | 16 | } from '../peertube-player-local-storage' |
17 | import { VideoFile } from '@shared/models' | 17 | import { VideoFile } from '@shared/models' |
@@ -77,7 +77,7 @@ class WebTorrentPlugin extends Plugin { | |||
77 | 77 | ||
78 | // Disable auto play on iOS | 78 | // Disable auto play on iOS |
79 | this.autoplay = options.autoplay && this.isIOS() === false | 79 | this.autoplay = options.autoplay && this.isIOS() === false |
80 | this.playerRefusedP2P = !getStoredWebTorrentEnabled() | 80 | this.playerRefusedP2P = !getStoredP2PEnabled() |
81 | 81 | ||
82 | this.videoFiles = options.videoFiles | 82 | this.videoFiles = options.videoFiles |
83 | this.videoDuration = options.videoDuration | 83 | this.videoDuration = options.videoDuration |