diff options
Diffstat (limited to 'client/src/standalone')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 9 |
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 | ||