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