/SSDP

.NET implementation (.NET Standard 1.4) of Simple Service Discovery Protocol (with AV transport service control point sample)

Primary LanguageC#GNU General Public License v2.0GPL-2.0

SSDP

.NET Standard implementation of Simple Service Discovery Protocol (with AV transport service control point sample).

Usage

Devices search

var devices = await new Ssdp().SearchUPnPDevicesAsync("MediaRenderer");

UPnP AV transport service control point

var controlPoint = new AVTransportControlPoint(new Ssdp());

// Gets the list of the media renderers
var mediaRenderers = await controlPoint.GetMediaRenderersAsync();

// Play the Big Buck Bunny video to a media renderer
await controlPoint.PlayAsync(mediaRenderers.First(), "http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi");

Note for UWP projects

NetworkInterface.GetAllNetworkInterfaces() method is not implemented in UWP.

So, in order to make this work in UWP, you can add this class in your code (I will update the nuget package later for UWP projects). And you will pass a NetworkInfo object to the constructor of the Ssdp class :

new AVTransportControlPoint(new Ssdp(new NetworkInfo()))

Download

NuGet Status