diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-18 10:20:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-18 10:20:13 +0200 |
commit | 80109b2ddb14ec4a54cede7885611cb9244da3cb (patch) | |
tree | d84323763c38cbdc1aff156598d9ab215bfe4dbe /client/src/assets/player/peertube-player.ts | |
parent | 66dc59076413b9a4aa0899d3192b0bdf03ee654d (diff) | |
download | PeerTube-80109b2ddb14ec4a54cede7885611cb9244da3cb.tar.gz PeerTube-80109b2ddb14ec4a54cede7885611cb9244da3cb.tar.zst PeerTube-80109b2ddb14ec4a54cede7885611cb9244da3cb.zip |
Handle when autoplay fails
Diffstat (limited to 'client/src/assets/player/peertube-player.ts')
-rw-r--r-- | client/src/assets/player/peertube-player.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts index e8a258065..f02fe5d75 100644 --- a/client/src/assets/player/peertube-player.ts +++ b/client/src/assets/player/peertube-player.ts | |||
@@ -27,11 +27,12 @@ function getVideojsOptions (options: { | |||
27 | const videojsOptions = { | 27 | const videojsOptions = { |
28 | controls: true, | 28 | controls: true, |
29 | poster: options.poster, | 29 | poster: options.poster, |
30 | autoplay: options.autoplay, | 30 | autoplay: false, |
31 | inactivityTimeout: options.inactivityTimeout, | 31 | inactivityTimeout: options.inactivityTimeout, |
32 | playbackRates: [ 0.5, 1, 1.5, 2 ], | 32 | playbackRates: [ 0.5, 1, 1.5, 2 ], |
33 | plugins: { | 33 | plugins: { |
34 | peertube: { | 34 | peertube: { |
35 | autoplay: options.autoplay, // Use peertube plugin autoplay because we get the file by webtorrent | ||
35 | videoFiles: options.videoFiles, | 36 | videoFiles: options.videoFiles, |
36 | playerElement: options.playerElement, | 37 | playerElement: options.playerElement, |
37 | videoViewUrl: options.videoViewUrl, | 38 | videoViewUrl: options.videoViewUrl, |