mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-10 02:27:29 +00:00
(attempt to) resume audio and video simultaneously
This commit is contained in:
parent
9a890574d5
commit
d806eb0426
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user