aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-05-20 09:59:53 +0200
committerChocobozzz <me@florianbigard.com>2022-05-20 09:59:53 +0200
commit60f013e1031871b7e0913c724f0bd2e569721c8e (patch)
tree9a138d17223292d02ac25ec36392aef30d203d3c /client/src/standalone/videos/embed.ts
parenta871d2a27324defde9a9ee6a998907886715f18e (diff)
downloadPeerTube-60f013e1031871b7e0913c724f0bd2e569721c8e.tar.gz
PeerTube-60f013e1031871b7e0913c724f0bd2e569721c8e.tar.zst
PeerTube-60f013e1031871b7e0913c724f0bd2e569721c8e.zip
Add control bar option for peertube player
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r--client/src/standalone/videos/embed.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index c0af1dfb3..1fc8e229b 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -37,7 +37,10 @@ export class PeerTubeEmbed {
37 api: PeerTubeEmbedApi = null 37 api: PeerTubeEmbedApi = null
38 38
39 autoplay: boolean 39 autoplay: boolean
40
40 controls: boolean 41 controls: boolean
42 controlBar: boolean
43
41 muted: boolean 44 muted: boolean
42 loop: boolean 45 loop: boolean
43 subtitle: string 46 subtitle: string
@@ -295,7 +298,10 @@ export class PeerTubeEmbed {
295 const params = new URL(window.location.toString()).searchParams 298 const params = new URL(window.location.toString()).searchParams
296 299
297 this.autoplay = this.getParamToggle(params, 'autoplay', false) 300 this.autoplay = this.getParamToggle(params, 'autoplay', false)
301
298 this.controls = this.getParamToggle(params, 'controls', true) 302 this.controls = this.getParamToggle(params, 'controls', true)
303 this.controlBar = this.getParamToggle(params, 'controlBar', true)
304
299 this.muted = this.getParamToggle(params, 'muted', undefined) 305 this.muted = this.getParamToggle(params, 'muted', undefined)
300 this.loop = this.getParamToggle(params, 'loop', false) 306 this.loop = this.getParamToggle(params, 'loop', false)
301 this.title = this.getParamToggle(params, 'title', true) 307 this.title = this.getParamToggle(params, 'title', true)
@@ -539,7 +545,10 @@ export class PeerTubeEmbed {
539 common: { 545 common: {
540 // Autoplay in playlist mode 546 // Autoplay in playlist mode
541 autoplay: alreadyHadPlayer ? true : this.autoplay, 547 autoplay: alreadyHadPlayer ? true : this.autoplay,
548
542 controls: this.controls, 549 controls: this.controls,
550 controlBar: this.controlBar,
551
543 muted: this.muted, 552 muted: this.muted,
544 loop: this.loop, 553 loop: this.loop,
545 554