Skip to content

Conversation

@nilesh-simform
Copy link
Contributor

  • stop player and set playback speed promise leaking issue
  • default function callback for onError prop of waveform
  • removed preparePlayerForPath method call on finished playing event called from native

val progress = obj.getInt(Constants.progress)
val key = obj.getString(Constants.playerKey)
if (key != null) {
audioPlayers[key]?.seekToPosition(progress.toLong(), promise)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to keep forwarding the promise inside the player and pollute the audio player class?
Would it not be safer and cleaner to keep promises inside the module that is doing the bridge between native code and JS?

@kuldip-simform kuldip-simform deleted the fix/UNT-T29402_promise_leaking_and_bug_fixes branch November 19, 2024 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants