-
Notifications
You must be signed in to change notification settings - Fork 42
fix: stop only the current player and not all players #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: stop only the current player and not all players #123
Conversation
ec85926 to
3dabff7
Compare
|
FYI: This PR will unblock fixes required in this one |
|
@dprevost-LMI We have added new features to the example app; can you please rebase and update your implementation to take that into account? |
fix: stop other player instead of the recoding when starting recording
caeb622 to
686e71f
Compare
|
Thank you for quick update. |
|
@mukesh-simform another PR to merge and unblock also #119, 🙇 |
Currently, the logic of starting or stopping a player or an audio recording triggers the stop action on all the players, which is useless, and when doing so with around 40 players, we see a noticeable lag when playing one audio after another.
By adding the
playerStateand theplayerKey,I could review the logic in the example app so that we could only stop the previous player from playing instead of all of them.Finally, by adding the
recorderState,I also managed to stop any player when starting a recording.Testing Proof of the changes
Screen.Recording.2024-11-09.at.10.46.08.AM.mov