-
Notifications
You must be signed in to change notification settings - Fork 42
Description
In a scenario where we want to use the audio player to load several audio messages for different conversations and where navigation between conversations is required only to show one conversation at a time, we need an efficient way to load the audio message but also to cancel nearly everything if we switch to another conversation.
In the above scenario, when navigating away from all those audio players being played or having their waveform extracted, we need to stop them. Otherwise, opening more and more conversations in a short period will bust resources (promises, players, extractors).
Here's an example of stopping all the extractors. Of course, we should typically not stay on that screen but load new audio messages, but for the testing, what is shown in the video was sufficient.
Screen.Recording.2024-10-19.at.9.13.22.PM.mov
See this PR: #119