This commit is contained in:
j 2021-10-27 16:19:55 +01:00
commit 6f7053ed03
8 changed files with 81 additions and 7 deletions

View file

@ -30,7 +30,8 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => {
video = document.createElement('video')
video.classList.add('player')
video.classList.add('fullscreen')
setVideoSrc(video, 'https://pad.ma/' + film.id + '/480p.webm')
//setVideoSrc(video, 'https://pad.ma/' + film.id + '/480p.webm')
video.src = `${film.prefix}/stream/${film.id}.mp4`
video.controls = true
document.querySelector('main').appendChild(video)
video.style.display = 'none'
@ -78,6 +79,6 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => {
video.remove()
video = null
});
}
}
}
})