mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Lazy load player captions
This commit is contained in:
parent
cb6a78c291
commit
93f30abf28
@ -220,7 +220,9 @@ export class PeertubePlayerManager {
|
||||
const isHLS = mode === 'p2p-media-loader'
|
||||
|
||||
let autoplay = this.getAutoPlayValue(commonOptions.autoplay)
|
||||
let html5 = {}
|
||||
let html5 = {
|
||||
preloadTextTracks: false
|
||||
}
|
||||
|
||||
const plugins: VideoJSPluginOptions = {
|
||||
peertube: {
|
||||
@ -248,7 +250,7 @@ export class PeertubePlayerManager {
|
||||
if (isHLS) {
|
||||
const { hlsjs } = PeertubePlayerManager.addP2PMediaLoaderOptions(plugins, options, p2pMediaLoaderModule)
|
||||
|
||||
html5 = hlsjs.html5
|
||||
Object.assign(html5, hlsjs.html5)
|
||||
}
|
||||
|
||||
if (mode === 'webtorrent') {
|
||||
|
Loading…
Reference in New Issue
Block a user