aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/peertube-player-manager.ts')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts6
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: {},