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

Preventing IJKMediaPlayer runs multiple times simultaneously? #19

Closed
rocxteady opened this issue May 6, 2014 · 1 comment
Closed

Preventing IJKMediaPlayer runs multiple times simultaneously? #19

rocxteady opened this issue May 6, 2014 · 1 comment

Comments

@rocxteady
Copy link

Hello again.
---Anroid---
How can I prevent the player runs multiple times simultaneosly?
For example: When I quit the app while streams play, it continues playing. It is ok. But when I launch the app again how can I get the instance of player which is running and stop it. If I don't this, second player starts playing with the old one.

@bbcallen
Copy link
Contributor

bbcallen commented May 7, 2014

Maybe you should hold the player instance in a service.
onStop() {
// detach surfaceView from player
}

onResume() {
// attach surfaceView back to the player
}

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

2 participants