calaldees / KaraKara

Karaoke Event System - Attendees can view and queue tracks from their mobile phones
https://karakara.uk
GNU General Public License v3.0
28 stars 9 forks source link

Keep app-state and HTML video element in sync #123

Closed shish closed 1 year ago

shish commented 1 year ago

Right now there are two ways for the state and the video element to get out of sync:

In both cases, it should be possible to detect that "state says we are half way through this track, but the HTML video element has video.currentTime pointing at the start of the video", and adjust appropriately