aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/peertube-player.ts')
-rw-r--r--client/src/assets/player/peertube-player.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts
index 7e339990c..baae740fe 100644
--- a/client/src/assets/player/peertube-player.ts
+++ b/client/src/assets/player/peertube-player.ts
@@ -29,10 +29,15 @@ function getVideojsOptions (options: {
29 peertubeLink: boolean, 29 peertubeLink: boolean,
30 poster: string, 30 poster: string,
31 startTime: number 31 startTime: number
32 theaterMode: boolean 32 theaterMode: boolean,
33 controls?: boolean,
34 muted?: boolean,
35 loop?: boolean
33}) { 36}) {
34 const videojsOptions = { 37 const videojsOptions = {
35 controls: true, 38 controls: options.controls !== undefined ? options.controls : true,
39 muted: options.controls !== undefined ? options.muted : false,
40 loop: options.loop !== undefined ? options.loop : false,
36 poster: options.poster, 41 poster: options.poster,
37 autoplay: false, 42 autoplay: false,
38 inactivityTimeout: options.inactivityTimeout, 43 inactivityTimeout: options.inactivityTimeout,