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

Audio after playing not stopped #822

Open
iasreact1 opened this issue Mar 15, 2023 · 0 comments
Open

Audio after playing not stopped #822

iasreact1 opened this issue Mar 15, 2023 · 0 comments
Labels

Comments

@iasreact1
Copy link

Hello, I have added audio in my cache directory and then played it creating a sound object with in a function like that
const playAudio = () => { if (selectAudio) { const sound = new Sound(selectAudio, Sound.CACHES, (error) => { if (error) { console.log('Error loading audio file', error); return; } setSound(sound); sound.play(); }); } };
But now i have to stop the audio after certain time using sound.stop() from another function and it will not worked and even not call i think sound object not properly passed please help if i want to stop the sound from another function..please help

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

No branches or pull requests

1 participant