Table of Contents

Interface IMrpDiscovery

Namespace
AppleTvControlLibrary.Discovery.Mrp
Assembly
AppleTvControlLibrary.Discovery.dll

Discovers MRP (Media Remote Protocol) devices on the local network. Kept behind an interface so multicast discovery - the least portable part of the library - can be swapped for a static address on hosts where multicast/mDNS isn't available or reliable.

public interface IMrpDiscovery

Methods

ScanAsync(TimeSpan, CancellationToken)

Scans the network for MRP devices.

Task<IReadOnlyList<MrpDiscoveryResult>> ScanAsync(TimeSpan timeout, CancellationToken cancellationToken = default)

Parameters

timeout TimeSpan

How long to wait for responses.

cancellationToken CancellationToken

A token to cancel the scan.

Returns

Task<IReadOnlyList<MrpDiscoveryResult>>

The discovered MRP devices.