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
namestringaddressIPAddressportintuniqueIdstringisEnabledboolpairingRequirementMrpPairingRequirementpropertiesIReadOnlyDictionary<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
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
Name
Gets the mDNS service instance name (e.g. "Living Room").
public string Name { get; }
Property Value
PairingRequirement
Gets whether/how pairing is required for this service.
public MrpPairingRequirement PairingRequirement { get; }
Property Value
Port
Gets the MRP port.
public int Port { get; }
Property Value
Properties
Gets the raw decoded TXT record properties.
public IReadOnlyDictionary<string, string> Properties { get; }
Property Value
UniqueId
Gets a stable unique identifier for the device (the "UniqueIdentifier" TXT record), or null if not present.
public string? UniqueId { get; }