-
Notifications
You must be signed in to change notification settings - Fork 22
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
Status always null Sender.GetChannel<IMediaChannel>().Status #2
Comments
Strange... It should not be null when the media is playing. When you call the PlayAsync() method, what is the result of the async operation (it should return a not null MediaStatus) ? |
@roberthardesty - are you checking If you are, then Status will be null. I submitted PR #7 which allows you to call GetStatusAsync() on the receiver channel to get the receiver status from a different client, which may help you if this is the case. |
Now, there are some GetStatusAsync methods on the ReceiverChannel (and also on the MediaChannel but I forgot to test it). You can call these methods to really know the current status. |
When I call GetStatusAsync, the method never returns (and throw a Timeout exception after a long time). |
Fixed in version 1.6.4. |
Greetings!
First off this is an awesome project, very modern and clean code. I am working on a .Net Core 2.0 Console service that utilizes MQTT for communications and acts as a hub for much of my home automation. I've been attempting to add a chromecast project to the service that utilizes this library. Using the example provided I've been able to connect and Play media, however, before attempting to execute other commands such as
PauseAsync()
andStopAsync()
I check anIsStopped
boolean just like in the example.When doing so the
mediaChannel.Status
is always null.When I do
_sender.GetStatuses()
I get two entries in the Dictionary. One withKey = "urn:x-cast:com.google.cast.receiver"
and the otherKey = "urn:x-cast:com.google.cast.media"
both with null values.Is there something I'm missing that's happening in the example?
The text was updated successfully, but these errors were encountered: