-
Notifications
You must be signed in to change notification settings - Fork 2
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
Running Apps throw unexpected errors #2
Comments
I'm afraid I don't know why you don't get a Sadly, I don't remember all the details of this now, but I would start with debugging the message that is returned for I know nothing about "Google's logic" as to what information it shares with what "sender". It might be that they simply won't allow you to contact an "app" that you haven't started, but I think that's a bit strange to be honest. That would mean that you couldn't communicate with "your own app" if you had to reconnect for some reason. Maybe it's somehow tied to the sender ID, or maybe there's some other reason. I would first make sure that this isn't just some parsing error by this library though. While all this ChromeCast stuff is a bit of a "black box" with a lot of guessing involved, and my memory on this isn't exactly fresh, please forgive me if I'm wrong, but I do seem to remember that there are "two generations" of "apps" for the ChromeCast. They had a completely different system initially, which were based on UPnP discovery and a different way of communication. It has been deprecated for years, but I think they still allow the "apps" which were already using it to keep using it. I even think that the YouTube "app" still use the old framework. It could be that Netflix were one of the early implementers, and that they have stayed on that framework. If so, it could be that it isn't possible to communicate with it from "this API" and thus wouldn't have a Fun fact: I'm actually running openHAB3 with the ChromeCast binding at my home. Small world 😉 |
Small world ;-) |
Generally, there are probably lots and lots of things that should be improved with the lib. I was just frustrated with all the problems with the lib it is based on, and made a pretty extensive "refactoring". But, I've primarily refined the things I've needed myself, which has been about controlling the "default media player". Many things are guesses, I can't even say why I'd have to dig in to try to figure out why it is defined that way, but that might not be the most important point. More important might be if it should be allowed to be Regarding the exception when the |
As I suspected, the non-null requirement for volume is directly from Google's documentation: https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.MediaStatus That doesn't mean that this lib would have to enforce it, obviously, but the potential consequences of accepting it without would have to be evaluated. |
After taking a quick look in the code, I can't see any obvious problem with allowing In general I'm in favor of preferring successful parsing over "sticking to the spec". Allowing them to be |
Thanks for some background details. I hope to improve the Chromecast binding, but it is a though one as not every app sticks to the specs. |
Working around the issue of not having a list of apps. I'm caching the apps. Just fiddling around, i found that several apps give this error. As far as i can see i cannot control this.
Calling code:
Started the apps from the cast device itself and not from the
sender
. Could it be related to thesourceId
param of startsession? I have that set to astatic string SENDER_ID = "myVeryFirstCastController"
:-)Edit:
With Amazone prime i get this:
From that i see two problems.
The text was updated successfully, but these errors were encountered: