nstudio / nativescript-audio

:microphone: NativeScript plugin to record and play audio :musical_note:
Other
150 stars 104 forks source link

scrubber #109

Closed bradrice closed 4 years ago

bradrice commented 6 years ago

Is there a way to get emitted current Time values to make sure a scrubber is in sync with where the audio is? I've been trying to just do an interval, but the code is turning to spaghetti with the play/pause, stop, turn the page stuff going on in my app.

bradmartin commented 6 years ago

If just trying to sync the remaining time with duration the demo app might be helpful here: https://github.com/nstudio/nativescript-audio/blob/master/demo/app/main-view-model.ts#L305

bradrice commented 6 years ago

Thanks Brad. I wasn't aware of the demo app.