aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils
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 /shared/core-utils
parenta871d2a27324defde9a9ee6a998907886715f18e (diff)
downloadPeerTube-60f013e1031871b7e0913c724f0bd2e569721c8e.tar.gz
PeerTube-60f013e1031871b7e0913c724f0bd2e569721c8e.tar.zst
PeerTube-60f013e1031871b7e0913c724f0bd2e569721c8e.zip
Add control bar option for peertube player
Diffstat (limited to 'shared/core-utils')
-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