diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-15 16:18:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-16 10:08:55 +0100 |
commit | bf1c3c78b0e2b70bb46168a9dec0d3fa0997ab14 (patch) | |
tree | f45c657bbff59f03df3cd547f65c8119f15fd6cb /client/src/assets/player/peertube-player-manager.ts | |
parent | a9bfa85d2cdf13670aaced740da5b493fbeddfce (diff) | |
download | PeerTube-bf1c3c78b0e2b70bb46168a9dec0d3fa0997ab14.tar.gz PeerTube-bf1c3c78b0e2b70bb46168a9dec0d3fa0997ab14.tar.zst PeerTube-bf1c3c78b0e2b70bb46168a9dec0d3fa0997ab14.zip |
Hide P2P in player if disabled
Diffstat (limited to 'client/src/assets/player/peertube-player-manager.ts')
-rw-r--r-- | client/src/assets/player/peertube-player-manager.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index c27024beb..57cdfca28 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts | |||
@@ -320,6 +320,7 @@ export class PeertubePlayerManager { | |||
320 | controlBar: { | 320 | controlBar: { |
321 | children: this.getControlBarChildren(mode, { | 321 | children: this.getControlBarChildren(mode, { |
322 | videoShortUUID: commonOptions.videoShortUUID, | 322 | videoShortUUID: commonOptions.videoShortUUID, |
323 | p2pEnabled: commonOptions.p2pEnabled, | ||
323 | 324 | ||
324 | captions: commonOptions.captions, | 325 | captions: commonOptions.captions, |
325 | peertubeLink: commonOptions.peertubeLink, | 326 | peertubeLink: commonOptions.peertubeLink, |
@@ -452,6 +453,7 @@ export class PeertubePlayerManager { | |||
452 | } | 453 | } |
453 | 454 | ||
454 | private static getControlBarChildren (mode: PlayerMode, options: { | 455 | private static getControlBarChildren (mode: PlayerMode, options: { |
456 | p2pEnabled: boolean | ||
455 | videoShortUUID: string | 457 | videoShortUUID: string |
456 | 458 | ||
457 | peertubeLink: boolean | 459 | peertubeLink: boolean |
@@ -527,7 +529,9 @@ export class PeertubePlayerManager { | |||
527 | } | 529 | } |
528 | }, | 530 | }, |
529 | 531 | ||
530 | p2PInfoButton: {}, | 532 | p2PInfoButton: { |
533 | p2pEnabled: options.p2pEnabled | ||
534 | }, | ||
531 | 535 | ||
532 | muteToggle: {}, | 536 | muteToggle: {}, |
533 | volumeControl: {}, | 537 | volumeControl: {}, |