- To reduce cpu usage the audio thread sends the play position only every ~0.3 seconds
- The UI receives that and updates to the actual position
- To get a smooth movement I use requestAnimationFrame and advance the position only in the UI
- To reduce cpu usage the audio thread sends the play position only every ~0.3 seconds
- The UI receives that and updates to the actual position
- To get a smooth movement I use requestAnimationFrame and advance the position only in the UI