nstudio / nativescript-audio

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

iOS: Resolve promises when calling play, pause or seekTo #184

Closed StevenGBrown closed 3 years ago

StevenGBrown commented 3 years ago

Previously when calling the play, pause or seekTo methods when running on iOS and the player was not in the expected state, the Promise would never be resolved.

e.g. this line would never complete if already in the playing state: await player.play()