Audio and visuals out of sync #2
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
vlw/still-alive#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Starting playback will in 9/10 cases run the visuals too early, with the sound lagging behind.
Start when everything is ready, not when audio is ready
It's possible this is a race issue and
HTMLMediaElement.play()can be called along with the first executing Monkeydo task to make them play together.Time drift
It is however also quite possible this is related to
setTimeout()drift. Which can be observed even with the audio and visuals in sync by simply placing the browser in the background or even triggering some work on the main thread.If this happens to be the case, one solution could be to implement a current time "sync pulse" which will be emitted from a Monkeydo task (with some interval) containing the expected media
currentTimefor an adjacent task.HTMLMediaElement.currentTimecould be aligned with this pulse, but it might cause a lot of audio glitches.This has been fixed in Monkeydo 0.4.0