Closed rendiwijiatmoko closed 3 years ago
:beetle: Description
i want to play audio and when move to other screen i want still playing until i open agian or open oother file audio
:beetle: What have you tried?
i try to unsubscribe using willunmount
:beetle: Please post your code:
componentWillUnmount(){ if(this.sound){ this.sound.release(); } if(this.timeout){ clearInterval(this.timeout); } }
:bulb: Possible solution
Is your issue with...
Are you using...
react-native run-android
Which versions are you using?
Does the problem occur on...
You don't need to write release function for background playing;
componentWillUnmount(){ if(this.timeout){ clearInterval(this.timeout); } }
:beetle: Description
i want to play audio and when move to other screen i want still playing until i open agian or open oother file audio
:beetle: What have you tried?
i try to unsubscribe using willunmount
:beetle: Please post your code:
:bulb: Possible solution
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...