PeerSpec class
An immutable snapshot of one peer, taken when it was read or delivered; safe to keep. It does
not change: read a new one, or watch PeerControl.SubscribeUpdates.
Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll
public sealed class PeerSpec
Properties
| Member | Description |
|---|---|
| Id | |
| DisplayName | |
| AppVersion | |
| AppCustomPeerInfo | Application-defined metadata the peer presented itself with. |
| AppState | Deprecated: read PeerSpec.Presence. Computed from it: PeerPresence.Offline and PeerPresence.Leaving read AppState.ShuttingDown, PeerPresence.Retired reads AppState.Retired, and any other peer reads what it claimed, which is AppState.Running from the moment it joins. |
| Presence | Whether the peer is here. A target app is rendered for while it PeerSpec.IsReachable; whether it is ready for a stream is negotiated by the render sender, not announced here. |
| IsReachable | Whether the peer can be rendered for, waited for or counted: its PeerSpec.Presence is PeerPresence.Online, or PeerPresence.Unknown on a hub that has not reconciled it. False once it is offline, leaving or retired. |
| VersionId | |
| RoomTag | The physical room the peer is in, to group peers in multi-room deployments. |
| Role | What the peer is in the streaming graph. A source application renders for the peers whose role is PeerRole.Target; this process is always PeerRole.Source. |
| IsTargetApp | Whether this peer shows rendered content (a headset's serving app, a Visualizer receiver, a camera's receiver slot): PeerSpec.Role is PeerRole.Target. A source application decides itself which target apps it renders for. |
| Category | What kind of device the peer is; the fallback for a PeerSpec.DeviceId and PeerSpec.DeviceFamily the application does not know. |
| DeviceId | Open string naming the exact device or app ("MetaQuest3", "HoloLens2", "Visualizer"). It can change while the peer runs, once its serving app knows the model. |
| DeviceFamily | Open string naming the device family ("MetaQuest"); empty when there is none. |
| DeviceName | Human name of the device ("Meta Quest 3"); empty when nothing better than the id is known. |
Id
public PeerId Id { get; }
Value: PeerId
DisplayName
public string DisplayName { get; }
Value: string
AppVersion
public string AppVersion { get; }
Value: string
AppCustomPeerInfo
Application-defined metadata the peer presented itself with.
public string AppCustomPeerInfo { get; }
Value: string
AppState
Deprecated: read PeerSpec.Presence. Computed from it: PeerPresence.Offline
and PeerPresence.Leaving read AppState.ShuttingDown,
PeerPresence.Retired reads AppState.Retired, and any other peer
reads what it claimed, which is AppState.Running from the moment it joins.
[Obsolete("Read Presence instead. AppState.Running only means the peer joined.")]
public AppState AppState { get; }
Value: AppState
Presence
Whether the peer is here. A target app is rendered for while it PeerSpec.IsReachable;
whether it is ready for a stream is negotiated by the render sender, not announced here.
public PeerPresence Presence { get; }
Value: PeerPresence
IsReachable
Whether the peer can be rendered for, waited for or counted: its PeerSpec.Presence is
PeerPresence.Online, or PeerPresence.Unknown on a hub that has
not reconciled it. False once it is offline, leaving or retired.
public bool IsReachable { get; }
Value: bool
VersionId
public string VersionId { get; }
Value: string
RoomTag
The physical room the peer is in, to group peers in multi-room deployments.
public string RoomTag { get; }
Value: string
Role
What the peer is in the streaming graph. A source application renders for the peers
whose role is PeerRole.Target; this process is always
PeerRole.Source.
public PeerRole Role { get; }
Value: PeerRole
IsTargetApp
Whether this peer shows rendered content (a headset's serving app, a Visualizer
receiver, a camera's receiver slot): PeerSpec.Role is PeerRole.Target.
A source application decides itself which target apps it renders for.
public bool IsTargetApp { get; }
Value: bool
Category
What kind of device the peer is; the fallback for a PeerSpec.DeviceId and
PeerSpec.DeviceFamily the application does not know.
public DeviceCategory Category { get; }
Value: DeviceCategory
DeviceId
Open string naming the exact device or app ("MetaQuest3", "HoloLens2", "Visualizer"). It can change while the peer runs, once its serving app knows the model.
public string DeviceId { get; }
Value: string
DeviceFamily
Open string naming the device family ("MetaQuest"); empty when there is none.
public string DeviceFamily { get; }
Value: string
DeviceName
Human name of the device ("Meta Quest 3"); empty when nothing better than the id is known.
public string DeviceName { get; }
Value: string