Closed wsupajirakit closed 2 years ago
I want to stop playing the current media when using another media app.
ex. My App current Play and when open Youtube and play some vdo on youtube I want to stop my App and Play only Youtube (but it's play both app)
iOS it's stop my app when play Youtube But Android it's not
<Video volume={this.state.volume} paused={this.state.paused} ref={(ref) => { this.video = ref }} source={{ uri : this.state.url }} playInBackground={true} playWhenInactive={true} shouldPlay ignoreSilentSwitch={"ignore"} resizeMode="cover" style={{width: 1, height: 1}} />
Are you using the prop playInBackground on purpose?
playInBackground
I have the same question asking for help. I used playInBackground={false}
playInBackground={false}
I want to stop playing the current media when using another media app.
ex. My App current Play and when open Youtube and play some vdo on youtube I want to stop my App and Play only Youtube (but it's play both app)
iOS it's stop my app when play Youtube But Android it's not