Skip to content

NCast C# SSDP discovery and content casting - Google Chromecast

License

Notifications You must be signed in to change notification settings

clodewyks/NCast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NCast

NCast C# SSDP discovery and content casting. Currently supports renderers such as LG TV's and Google Chromecast.

public SSDPDiscovery Discovery = new SSDPDiscovery();
// Setup the event when a device is discovered
Discovery.OnDeviceDiscovered += OnDeviceDiscovered;
// Start discovering
Discovery.Start();
private void OnDeviceDiscovered(object sender, SSDPDiscoveredDeviceEventArgs args)
{
    // args.Response contains the device information
    var device = args.Response; // type is SSDPResponse
    
    if (device.DeviceType == DeviceType.Chromecast) {
        
        // Turn the generic SSDP device of known manufacturer into a Chromecast specific device
        var chromeCast = new ChromecastDevice(device);
        // Get the name and details from the Chromecast
        var info = await chromeCast.GetDetail();
    }
}

About

NCast C# SSDP discovery and content casting - Google Chromecast

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published