aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/core-utils/common/url.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/core-utils/common/url.ts b/shared/core-utils/common/url.ts
index 8020d9b28..fd54e7594 100644
--- a/shared/core-utils/common/url.ts
+++ b/shared/core-utils/common/url.ts
@@ -48,7 +48,10 @@ function decorateVideoLink (options: {
48 // Embed options 48 // Embed options
49 title?: boolean 49 title?: boolean
50 warningTitle?: boolean 50 warningTitle?: boolean
51
51 controls?: boolean 52 controls?: boolean
53 controlBar?: boolean
54
52 peertubeLink?: boolean 55 peertubeLink?: boolean
53 p2p?: boolean 56 p2p?: boolean
54}) { 57}) {
@@ -73,7 +76,10 @@ function decorateVideoLink (options: {
73 if (options.muted === true) params.set('muted', '1') 76 if (options.muted === true) params.set('muted', '1')
74 if (options.title === false) params.set('title', '0') 77 if (options.title === false) params.set('title', '0')
75 if (options.warningTitle === false) params.set('warningTitle', '0') 78 if (options.warningTitle === false) params.set('warningTitle', '0')
79
76 if (options.controls === false) params.set('controls', '0') 80 if (options.controls === false) params.set('controls', '0')
81 if (options.controlBar === false) params.set('controlBar', '0')
82
77 if (options.peertubeLink === false) params.set('peertubeLink', '0') 83 if (options.peertubeLink === false) params.set('peertubeLink', '0')
78 if (options.p2p !== undefined) params.set('p2p', options.p2p ? '1' : '0') 84 if (options.p2p !== undefined) params.set('p2p', options.p2p ? '1' : '0')
79 85