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

Provide an ID along with FriendlyName? #19

Closed damonbrodie closed 5 years ago

damonbrodie commented 5 years ago

I'm using GoogleCast and it works very well! Thanks for providing this!

My application stores a selected receiver from the list of receivers and casts to that device. Looking at the exposed attributes of IReceiver I see Friendly Name and IPEndPoint - both of which are dynamic. IP addresses will change with DHCP and the Friendly Name is alterable by the user. What I would like to do is store a unique ID for the selected receiver and then use that when it is time to connect. This way the friendly name can be changed at will without affecting anything.

Is it possible to expose a .Id of somekind against each receiver in IReceiver?

damonbrodie commented 5 years ago

I've created PR #20 to add this functionality.

damonbrodie commented 5 years ago

Thanks for incorporating my PR - any change you could uprev the release on nuget?

kakone commented 5 years ago

Available in version 1.6.7.