aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
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/assets
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/assets')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts1
-rw-r--r--client/src/assets/player/types/manager-options.ts2
2 files changed, 3 insertions, 0 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts
index 1b2a67c77..b24b6966e 100644
--- a/client/src/assets/player/peertube-player-manager.ts
+++ b/client/src/assets/player/peertube-player-manager.ts
@@ -110,6 +110,7 @@ export class PeertubePlayerManager {
110 110
111 if (isMobile()) player.peertubeMobile() 111 if (isMobile()) player.peertubeMobile()
112 if (options.common.enableHotkeys === true) player.peerTubeHotkeysPlugin() 112 if (options.common.enableHotkeys === true) player.peerTubeHotkeysPlugin()
113 if (options.common.controlBar === false) player.controlBar.addClass('control-bar-hidden')
113 114
114 player.bezels() 115 player.bezels()
115 116
diff --git a/client/src/assets/player/types/manager-options.ts b/client/src/assets/player/types/manager-options.ts
index 456ef115e..a6f00876f 100644
--- a/client/src/assets/player/types/manager-options.ts
+++ b/client/src/assets/player/types/manager-options.ts
@@ -21,6 +21,8 @@ export interface CustomizationOptions {
21 stopTime: number | string 21 stopTime: number | string
22 22
23 controls?: boolean 23 controls?: boolean
24 controlBar?: boolean
25
24 muted?: boolean 26 muted?: boolean
25 loop?: boolean 27 loop?: boolean
26 subtitle?: string 28 subtitle?: string