aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-13 08:38:15 +0200
committerChocobozzz <me@florianbigard.com>2021-04-13 08:38:15 +0200
commit93f30abf2809327aa7bf637691baa2a125bba5fa (patch)
tree1ab6b8855be1ae66449f4f1758e6191beb39813e /client
parentcb6a78c291a52950c85eecbf172b8ec6b7d2efe2 (diff)
downloadPeerTube-93f30abf2809327aa7bf637691baa2a125bba5fa.tar.gz
PeerTube-93f30abf2809327aa7bf637691baa2a125bba5fa.tar.zst
PeerTube-93f30abf2809327aa7bf637691baa2a125bba5fa.zip
Lazy load player captions
Diffstat (limited to 'client')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts
index b112e231f..ed82e0496 100644
--- a/client/src/assets/player/peertube-player-manager.ts
+++ b/client/src/assets/player/peertube-player-manager.ts
@@ -220,7 +220,9 @@ export class PeertubePlayerManager {
220 const isHLS = mode === 'p2p-media-loader' 220 const isHLS = mode === 'p2p-media-loader'
221 221
222 let autoplay = this.getAutoPlayValue(commonOptions.autoplay) 222 let autoplay = this.getAutoPlayValue(commonOptions.autoplay)
223 let html5 = {} 223 let html5 = {
224 preloadTextTracks: false
225 }
224 226
225 const plugins: VideoJSPluginOptions = { 227 const plugins: VideoJSPluginOptions = {
226 peertube: { 228 peertube: {
@@ -248,7 +250,7 @@ export class PeertubePlayerManager {
248 if (isHLS) { 250 if (isHLS) {
249 const { hlsjs } = PeertubePlayerManager.addP2PMediaLoaderOptions(plugins, options, p2pMediaLoaderModule) 251 const { hlsjs } = PeertubePlayerManager.addP2PMediaLoaderOptions(plugins, options, p2pMediaLoaderModule)
250 252
251 html5 = hlsjs.html5 253 Object.assign(html5, hlsjs.html5)
252 } 254 }
253 255
254 if (mode === 'webtorrent') { 256 if (mode === 'webtorrent') {