Table of Contents

Class MediaDiscoverer

Namespace
LibVLCSharp.Shared
Assembly
LibVLCSharp.dll

MediaDiscoverer should be used to find media on NAS and any SMB/UPnP-enabled device on your local network.

public class MediaDiscoverer : Internal, IDisposable
Inheritance
MediaDiscoverer
Implements
Inherited Members

Constructors

MediaDiscoverer(LibVLC, string)

Media discoverer constructor

public MediaDiscoverer(LibVLC libVLC, string name)

Parameters

libVLC LibVLC

libvlc instance this will be attached to

name string

name from one of LibVLC.MediaDiscoverers

Properties

IsRunning

Query if media service discover object is running.

public bool IsRunning { get; }

Property Value

bool

LocalizedName

Get media service discover object its localized name. under v3 only

public string? LocalizedName { get; }

Property Value

string

MediaList

The MediaList attached to this MediaDiscoverer

public MediaList? MediaList { get; }

Property Value

MediaList

Methods

Dispose(bool)

Dispose of this media discoverer

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if called from a method

Start()

Start media discovery. To stop it, call MediaDiscover::stop() or destroy the object directly.

public bool Start()

Returns

bool

false in case of error, true otherwise

Stop()

Stop media discovery.

public void Stop()

Events

Started

Media discovery has been started for this media discoverer

public event EventHandler<EventArgs> Started

Event Type

EventHandler<EventArgs>

Stopped

Media discovery has been stopped for this media discoverer

public event EventHandler<EventArgs> Stopped

Event Type

EventHandler<EventArgs>