fix extra slash in video src

This commit is contained in:
Sanjay B 2021-10-28 21:07:48 +05:30
parent e29b46b517
commit c5935474ad

View file

@ -31,7 +31,7 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => {
video.classList.add('player') video.classList.add('player')
video.classList.add('fullscreen') 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.src = `${film.prefix}stream/${film.id}.mp4`
video.controls = true video.controls = true
video.controlsList = 'nodownload' video.controlsList = 'nodownload'
document.querySelector('main').appendChild(video) document.querySelector('main').appendChild(video)