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.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts
index 4ae3e71bd..58a8aa26c 100644
--- a/client/src/assets/player/peertube-player.ts
+++ b/client/src/assets/player/peertube-player.ts
@@ -20,10 +20,12 @@ function getVideojsOptions (options: {
20 videoFiles: VideoFile[], 20 videoFiles: VideoFile[],
21 enableHotkeys: boolean, 21 enableHotkeys: boolean,
22 inactivityTimeout: number, 22 inactivityTimeout: number,
23 peertubeLink: boolean 23 peertubeLink: boolean,
24 poster: string
24}) { 25}) {
25 const videojsOptions = { 26 const videojsOptions = {
26 controls: true, 27 controls: true,
28 poster: options.poster,
27 autoplay: options.autoplay, 29 autoplay: options.autoplay,
28 inactivityTimeout: options.inactivityTimeout, 30 inactivityTimeout: options.inactivityTimeout,
29 playbackRates: [ 0.5, 1, 1.5, 2 ], 31 playbackRates: [ 0.5, 1, 1.5, 2 ],