1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-22 15:47: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() { function playVideo() {
audio.currentTime = video.currentTime audio.currentTime = video.currentTime
let lastTime = video.currentTime let lastTime = video.currentTime
ignoreNext.play++
video.play().then(() => { video.play().then(() => {
const interval = setInterval(() => { const interval = setInterval(() => {
console.log("checking video", video.currentTime, lastTime) console.log("checking video", video.currentTime, lastTime)