Update HLS support
This commit is contained in:
parent
85118db86e
commit
094c9a7c4e
|
@ -25,7 +25,7 @@ window.IframeChild = class IframeChild extends PlayerJSPlayer
|
|||
iframe.addEventListener('load', =>
|
||||
iframe.contentWindow.VOLUME = VOLUME;
|
||||
iframe.contentWindow.loadMediaPlayer(Object.assign({}, data, { type: 'cm' } ))
|
||||
iframe.contentWindow.document.querySelector('#ytapiplayer').classList.add('vjs-fluid')
|
||||
iframe.contentWindow.document.querySelector('#ytapiplayer').classList.add('vjs-16-9')
|
||||
adapter = iframe.contentWindow.playerjs.VideoJSAdapter(iframe.contentWindow.PLAYER.player)
|
||||
adapter.ready()
|
||||
typeof data?.meta?.thumbnail == 'string' and iframe.contentWindow.PLAYER.player.poster(data.meta.thumbnail)
|
||||
|
|
|
@ -255,7 +255,7 @@ html(lang="en")
|
|||
script(defer, src="/js/peertube.js")
|
||||
script(defer, src="/js/sc.js")
|
||||
script(defer, src="/js/video.js")
|
||||
script(defer, src="/js/videojs-contrib-hls.min.js")
|
||||
script(defer, src="/js/videojs-hlsjs-plugin.js")
|
||||
script(defer, src="/js/videojs-resolution-switcher.js")
|
||||
script(defer, src="/js/playerjs-0.0.12.js")
|
||||
script(defer, src="/js/dash.all.min.js")
|
||||
|
|
8
www/js/videojs-contrib-hls.min.js
vendored
8
www/js/videojs-contrib-hls.min.js
vendored
File diff suppressed because one or more lines are too long
8
www/js/videojs-hlsjs-plugin.js
Normal file
8
www/js/videojs-hlsjs-plugin.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue