Update HLS support

This commit is contained in:
Xaekai 2022-01-30 12:55:25 -08:00
parent 85118db86e
commit 094c9a7c4e
4 changed files with 10 additions and 10 deletions

View File

@ -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)

View File

@ -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")

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long