kakone / GoogleCast

Implementation of the Google Cast protocol (.NET Standard 2.0 library)
GNU General Public License v3.0
141 stars 22 forks source link

Sender.Disconnected event not fired as expected #17

Open cncb-gh opened 5 years ago

cncb-gh commented 5 years ago

The Sender.Disconnected event does not seem to fire. If I am connected and playing media if I hit back on my Android TV remote, it exits casting and stops playing the media but my Disconnected event handler is never called. I hook up my event handler after I connect and launch the media channel.

cncb-gh commented 5 years ago

Somewhat related to this is that calling Sender.DisconnectAsync() does not seem to exit the casting.