use streaming proxy

This commit is contained in:
j 2021-11-24 12:45:15 +01:00
commit c230b57dca
9 changed files with 34 additions and 25 deletions

View file

@ -200,8 +200,8 @@ function renderPlayer(config) {
video.muted = false
video.controls = true
if (config.item) {
setVideoSrc(video, `${pandoraURL}/${config.item}/480p.webm`)
video.poster = `${pandoraURL}/${config.item}/480p.jpg`
setVideoSrc(video, `${streamPrefix}/${config.item}/480p.webm`)
video.poster = `${streamPrefix}/${config.item}/480p.jpg`
}
video.addEventListener('timeupdate', timeupdate)
var box = document.createElement('div')