Skip to content
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

How to keep audio player working after component destroy #154

Closed
pleerock opened this issue Jan 22, 2025 · 1 comment
Closed

How to keep audio player working after component destroy #154

pleerock opened this issue Jan 22, 2025 · 1 comment

Comments

@pleerock
Copy link

Let's take Whatsup app as an example. In the message list we show list of audio messages (where is used). In the message list sound track keeps playing, however, when we leave message list (go to contact list) we destroy message list (where is used), but need to keep playing the sound. Currently it seems not possible (since gets destroyed)?

Is there any way to keep sound (or multiple sounds) playing after gets destroyed? Maybe some underlying APIs which expose the underlying Sound object where we can get control over currently playing sound.

@pleerock
Copy link
Author

Okay, I was able to control it using AudioWaveform and writing custom UI component to show the waves. It would be great if you export AudioWaveform from the main of the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant