diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-20 09:59:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-20 09:59:53 +0200 |
commit | 60f013e1031871b7e0913c724f0bd2e569721c8e (patch) | |
tree | 9a138d17223292d02ac25ec36392aef30d203d3c /client/src/app | |
parent | a871d2a27324defde9a9ee6a998907886715f18e (diff) | |
download | PeerTube-60f013e1031871b7e0913c724f0bd2e569721c8e.tar.gz PeerTube-60f013e1031871b7e0913c724f0bd2e569721c8e.tar.zst PeerTube-60f013e1031871b7e0913c724f0bd2e569721c8e.zip |
Add control bar option for peertube player
Diffstat (limited to 'client/src/app')
3 files changed, 6 insertions, 5 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index 61b440859..5fa31ec63 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -602,6 +602,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
602 | 602 | ||
603 | startTime, | 603 | startTime, |
604 | stopTime: urlOptions.stopTime, | 604 | stopTime: urlOptions.stopTime, |
605 | controlBar: urlOptions.controlBar, | ||
605 | controls: urlOptions.controls, | 606 | controls: urlOptions.controls, |
606 | muted: urlOptions.muted, | 607 | muted: urlOptions.muted, |
607 | loop: urlOptions.loop, | 608 | loop: urlOptions.loop, |
diff --git a/client/src/app/shared/shared-share-modal/video-share.component.html b/client/src/app/shared/shared-share-modal/video-share.component.html index 7ff62e128..67ca56516 100644 --- a/client/src/app/shared/shared-share-modal/video-share.component.html +++ b/client/src/app/shared/shared-share-modal/video-share.component.html | |||
@@ -250,8 +250,8 @@ | |||
250 | 250 | ||
251 | <div class="form-group"> | 251 | <div class="form-group"> |
252 | <my-peertube-checkbox | 252 | <my-peertube-checkbox |
253 | inputName="controls" [(ngModel)]="customizations.controls" | 253 | inputName="controlBar" [(ngModel)]="customizations.controlBar" |
254 | i18n-labelText labelText="Display player controls" | 254 | i18n-labelText labelText="Display player control bar" |
255 | ></my-peertube-checkbox> | 255 | ></my-peertube-checkbox> |
256 | </div> | 256 | </div> |
257 | 257 | ||
diff --git a/client/src/app/shared/shared-share-modal/video-share.component.ts b/client/src/app/shared/shared-share-modal/video-share.component.ts index 6c0d4a039..e0c98008c 100644 --- a/client/src/app/shared/shared-share-modal/video-share.component.ts +++ b/client/src/app/shared/shared-share-modal/video-share.component.ts | |||
@@ -27,7 +27,7 @@ type Customizations = { | |||
27 | onlyEmbedUrl: boolean | 27 | onlyEmbedUrl: boolean |
28 | title: boolean | 28 | title: boolean |
29 | warningTitle: boolean | 29 | warningTitle: boolean |
30 | controls: boolean | 30 | controlBar: boolean |
31 | peertubeLink: boolean | 31 | peertubeLink: boolean |
32 | } | 32 | } |
33 | 33 | ||
@@ -88,7 +88,7 @@ export class VideoShareComponent { | |||
88 | onlyEmbedUrl: false, | 88 | onlyEmbedUrl: false, |
89 | title: true, | 89 | title: true, |
90 | warningTitle: true, | 90 | warningTitle: true, |
91 | controls: true, | 91 | controlBar: true, |
92 | peertubeLink: true | 92 | peertubeLink: true |
93 | }, { | 93 | }, { |
94 | set: (target, prop, value) => { | 94 | set: (target, prop, value) => { |
@@ -190,7 +190,7 @@ export class VideoShareComponent { | |||
190 | ? { | 190 | ? { |
191 | title: this.customizations.title, | 191 | title: this.customizations.title, |
192 | warningTitle: this.customizations.warningTitle, | 192 | warningTitle: this.customizations.warningTitle, |
193 | controls: this.customizations.controls, | 193 | controlBar: this.customizations.controlBar, |
194 | peertubeLink: this.customizations.peertubeLink, | 194 | peertubeLink: this.customizations.peertubeLink, |
195 | 195 | ||
196 | // If using default value, we don't need to specify it | 196 | // If using default value, we don't need to specify it |