Table of Contents

Interface IAirPlayDiscovery

Namespace
AppleTvControlLibrary.Discovery.AirPlay
Assembly
AppleTvControlLibrary.Discovery.dll

Discovers AirPlay 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 IAirPlayDiscovery

Methods

ScanAsync(TimeSpan, CancellationToken)

Scans the network for AirPlay devices.

Task<IReadOnlyList<AirPlayDiscoveryResult>> 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<AirPlayDiscoveryResult>>

The discovered AirPlay devices.