aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-18 10:20:13 +0200
committerChocobozzz <me@florianbigard.com>2018-04-18 10:20:13 +0200
commit80109b2ddb14ec4a54cede7885611cb9244da3cb (patch)
treed84323763c38cbdc1aff156598d9ab215bfe4dbe /client/src/assets/player/peertube-player.ts
parent66dc59076413b9a4aa0899d3192b0bdf03ee654d (diff)
downloadPeerTube-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.ts3
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,