-
Notifications
You must be signed in to change notification settings - Fork 84
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
Question: How to handle back action in Chromecast with Google TV. #144
Comments
@alexballas at the moment you need to call |
Ah! thank you so much! One last question. Is it possible to "detect" when someone pressed the "back" button. When I load something and I click the back button, chromecast takes my back to the menu but status is still reporting as BUFFERING. The only indication that the file stopped playing is the |
Hmm, I don't think anything is exposed at the moment. There is a private field to track whether the media is playing or not https://github.com/vishen/go-chromecast/blob/master/application/application.go#L119 (although I am not 100% sure this works in all scenarios). Since this isn't currently exposed nicely, we could add a new field to track the last media status or the current status of the recently played media? Does "polling" the status command show you anything useful when the "back" button is pushed? One other thing to try is, |
Changed the issue title to better reflect what I'm after So I did some investigation. The only thing that indicated that the media has stopped playing is the I don't want to keep this issue open if there is indeed no straight forward way to do it. Let me know if you have any other ideas on how to best approach this. |
Hello,
I've been trying to get the
*cast.Media
data when loading a file../go-chromecast load ~/Videos/video.mp4
I added this snippet
here https://github.com/vishen/go-chromecast/blob/master/cmd/load.go#L66 just to test.
It returns
while the video plays fine.
Am I missing something? How does *cast.Media get populated?
I'm using a
Chromecast with Google TV
The text was updated successfully, but these errors were encountered: