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
address IPAddress
port int
uniqueId string
isEnabled bool
pairingRequirement MrpPairingRequirement
properties IReadOnlyDictionary<string, string>

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

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

Name

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

public string Name { get; }

Property Value

string

PairingRequirement

Gets whether/how pairing is required for this service.

public MrpPairingRequirement PairingRequirement { get; }

Property Value

MrpPairingRequirement

Port

Gets the MRP port.

public int Port { get; }

Property Value

int

Properties

Gets the raw decoded TXT record properties.

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

Property Value

IReadOnlyDictionary<string, string>

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