Merge branch 'main' of git.0x2620.org:0x2620/aab21 into main

This commit is contained in:
imohkay 2021-10-27 22:17:21 +05:30
commit 0472f9d25c
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
});
}
}
}
})