Table of Contents

Class MrpDiscoveryResult

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

Represents a discovered MRP (Media Remote Protocol) service.

public sealed class MrpDiscoveryResult
Inheritance
MrpDiscoveryResult
Inherited Members

Remarks

Initializes a new instance of the MrpDiscoveryResult class.

Constructors

MrpDiscoveryResult(string, IPAddress?, int, string?, bool, MrpPairingRequirement, IReadOnlyDictionary<string, string>)

Represents a discovered MRP (Media Remote Protocol) service.

public MrpDiscoveryResult(string name, IPAddress? address, int port, string? uniqueId, bool isEnabled, MrpPairingRequirement pairingRequirement, IReadOnlyDictionary<string, string> properties)

Parameters

name string

The advertised service or device name.

address IPAddress

The discovered IP address, if available.

port int

The advertised service port.

uniqueId string

The advertised unique device identifier, if available.

isEnabled bool

Whether the MRP service is enabled.

pairingRequirement MrpPairingRequirement

The pairing requirement advertised by the service.

properties IReadOnlyDictionary<string, string>

The DNS-SD TXT properties advertised by the service.

Remarks

Initializes a new instance of the MrpDiscoveryResult class.

Properties

Address

Gets the resolved address of the device, if known.

public IPAddress? Address { get; }

Property Value

IPAddress

The resolved address of the device, if known.

IsEnabled

Gets a value indicating whether MRP is considered enabled on this device. pyatv disables MRP once SystemBuildVersion's leading numeric build component is 19 or higher (tvOS 15+, where Companion Link superseded MRP for remote control).

public bool IsEnabled { get; }

Property Value

bool

A value indicating whether MRP is considered enabled on this device. pyatv disables MRP once SystemBuildVersion's leading numeric build component is 19 or higher (tvOS 15+, where Companion Link superseded MRP for remote control).

Name

Gets the mDNS service instance name (e.g. "Living Room").

public string Name { get; }

Property Value

string

The mDNS service instance name (e.g. "Living Room").

PairingRequirement

Gets whether/how pairing is required for this service.

public MrpPairingRequirement PairingRequirement { get; }

Property Value

MrpPairingRequirement

Whether/how pairing is required for this service.

Port

Gets the MRP port.

public int Port { get; }

Property Value

int

The MRP port.

Properties

Gets the raw decoded TXT record properties.

public IReadOnlyDictionary<string, string> Properties { get; }

Property Value

IReadOnlyDictionary<string, string>

The raw decoded TXT record properties.

UniqueId

Gets a stable unique identifier for the device (the "UniqueIdentifier" TXT record), or null if not present.

public string? UniqueId { get; }

Property Value

string

A stable unique identifier for the device (the "UniqueIdentifier" TXT record), or null if not present.