1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-09-19 18:57:30 +00:00

(attempt to) resume audio and video simultaneously

This commit is contained in:
Cadence Ember 2020-10-29 21:16:59 +13:00
parent 9a890574d5
commit d806eb0426
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -162,6 +162,7 @@ function relativeSeek(seconds) {
function playVideo() {
audio.currentTime = video.currentTime
let lastTime = video.currentTime
ignoreNext.play++
video.play().then(() => {
const interval = setInterval(() => {
console.log("checking video", video.currentTime, lastTime)