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

Stop and release player function #8

Closed
arnoudkooi opened this issue Nov 2, 2022 · 3 comments
Closed

Stop and release player function #8

arnoudkooi opened this issue Nov 2, 2022 · 3 comments

Comments

@arnoudkooi
Copy link

Is there a supported way to stop and release all players?
Now when I step back it keeps playing

@ArezooNazer
Copy link
Owner

If you are using multiple players, please check this link, I recommend using a single player.

You can pause or release the player in onPause or onStop of the PlayerActivity.

@arnoudkooi
Copy link
Author

That worked, thank you!
Would you happen to know if it is possible to capture the event when a live stream ends?

@ArezooNazer
Copy link
Owner

yes, you can use Exoplayer event listener:

https://exoplayer.dev/listening-to-player-events.html

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