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

Listening for playback status changes? #119

Open
vinz243 opened this issue Oct 22, 2019 · 2 comments
Open

Listening for playback status changes? #119

vinz243 opened this issue Oct 22, 2019 · 2 comments

Comments

@vinz243
Copy link

vinz243 commented Oct 22, 2019

Right now, if want to listen to playback changes (like pause/resume/stop) I have to continuously pool the ChromeCast#getMediaState() event. Is there a way I be notified of changes without pooling?

@vitalidze
Copy link
Owner

The best place to look for such answer is the official chromecast documentation. My guess is that you may be interested in spontaneous events sent by the chromecast device. Try to implement the ChromeCastSpontaneousEventListener interface and subscribe to such events via the registerListener method.

@vinz243
Copy link
Author

vinz243 commented Oct 23, 2019

That's what I did, I receive notifications for example when an app is starting (or stopping) but I don't receive anything for playback status changes, only the Status event

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