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

How can a session be made inactive? #1501

Open
Vorafas opened this issue Jun 26, 2024 · 0 comments
Open

How can a session be made inactive? #1501

Vorafas opened this issue Jun 26, 2024 · 0 comments

Comments

@Vorafas
Copy link

Vorafas commented Jun 26, 2024

Good afternoon!
How can I make my androidx.media3.session.MediaSession instance undetectable for certain cases and stop receiving media button events or transport commands?
For example, if the user moved from the player to the movie card, then I want to stop receiving media events, but if the user returned back to the player, then activate the session to receive media events again.
In the old implementation I used this function android.media.session.MediaSession.setActive
Thanks!

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

No branches or pull requests

2 participants