diff options
author | Chocobozzz <me@florianbigard.com> | 2022-12-20 16:28:15 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-12-20 16:28:15 +0100 |
commit | 0e7c4b03c3908ad81427921c96b06c1efae4da54 (patch) | |
tree | 811c1f102ac4d7623d0e1cd6eab589f51b0d4eb4 /client/src/assets/player/shared/manager-options | |
parent | 21e73020142635f0b1b2c8694a6b5164437954b9 (diff) | |
download | PeerTube-0e7c4b03c3908ad81427921c96b06c1efae4da54.tar.gz PeerTube-0e7c4b03c3908ad81427921c96b06c1efae4da54.tar.zst PeerTube-0e7c4b03c3908ad81427921c96b06c1efae4da54.zip |
Add back to live feature
Diffstat (limited to 'client/src/assets/player/shared/manager-options')
-rw-r--r-- | client/src/assets/player/shared/manager-options/control-bar-options-builder.ts | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/client/src/assets/player/shared/manager-options/control-bar-options-builder.ts b/client/src/assets/player/shared/manager-options/control-bar-options-builder.ts index 27f366732..df1e8eabe 100644 --- a/client/src/assets/player/shared/manager-options/control-bar-options-builder.ts +++ b/client/src/assets/player/shared/manager-options/control-bar-options-builder.ts | |||
@@ -30,10 +30,7 @@ export class ControlBarOptionsBuilder { | |||
30 | } | 30 | } |
31 | 31 | ||
32 | Object.assign(children, { | 32 | Object.assign(children, { |
33 | currentTimeDisplay: {}, | 33 | ...this.getTimeControls(), |
34 | timeDivider: {}, | ||
35 | durationDisplay: {}, | ||
36 | liveDisplay: {}, | ||
37 | 34 | ||
38 | flexibleWidthSpacer: {}, | 35 | flexibleWidthSpacer: {}, |
39 | 36 | ||
@@ -90,7 +87,23 @@ export class ControlBarOptionsBuilder { | |||
90 | } | 87 | } |
91 | } | 88 | } |
92 | 89 | ||
90 | private getTimeControls () { | ||
91 | if (this.options.isLive) { | ||
92 | return { | ||
93 | peerTubeLiveDisplay: {} | ||
94 | } | ||
95 | } | ||
96 | |||
97 | return { | ||
98 | currentTimeDisplay: {}, | ||
99 | timeDivider: {}, | ||
100 | durationDisplay: {} | ||
101 | } | ||
102 | } | ||
103 | |||
93 | private getProgressControl () { | 104 | private getProgressControl () { |
105 | if (this.options.isLive) return {} | ||
106 | |||
94 | const loadProgressBar = this.mode === 'webtorrent' | 107 | const loadProgressBar = this.mode === 'webtorrent' |
95 | ? 'peerTubeLoadProgressBar' | 108 | ? 'peerTubeLoadProgressBar' |
96 | : 'loadProgressBar' | 109 | : 'loadProgressBar' |