## Problem and outcome / 问题与结果 This phase adds lightweight room interaction without making media depend on chat, and adds Windows source-audio exclusion and optional SFU-only hosting at their existing owners. It also corrects confirmed encoder/capture ownership and native color-conversion defects. Host microphone commentary remains on the shared media path; room voice and 4K are outside this phase. ## Release notes ### 中文 这是一次功能更新:Piik 加入了文字聊天与表情互动,并完善了 Windows 声音采集、画面颜色和自部署选项。 #### 新功能 - **边看边聊。** 在可移动、可缩放的聊天窗口中发送消息,或开启弹幕。停止分享后,房间中的朋友仍可继续聊天。 - **表情互动。** 点击沙发上的人物,给自己发表情,或把番茄等表情送给朋友;各端按同一事件显示动画。 - **排除应用声音。** Windows App 分享整个屏幕时,可排除一个应用及其子进程的声音,适合同时使用语音软件。所选应用退出后,来源声音停止,避免恢复为未过滤的系统声音。 - **可选的纯 SFU 模式。** 自部署管理员可让共享画面和声音统一通过媒体服务器转发。默认仍为优先 P2P;App 公网邀请保持纯 P2P。 - **Windows HDR 转 SDR。** 原生采集与缩略图自动将 HDR 来源转换为 SDR,沿用现有观看链路。 #### 修复与改进 - 修复原生颜色转换的范围与矩阵处理,避免已复现的暗部丢失、高光裁切和颜色偏差。 - 修复共享编码器切换时使用过期需求或过期帧信息的问题,保护正在观看的画面;修复换源后旧采集事件可能影响新来源的问题。 - 统一新控件、浮窗与来源选择文案,补充中英文使用说明。 #### 使用与升级 聊天与表情需要新版站点页面和 Server;声音排除需要新版页面与支持此能力的 Windows App。聊天只保留本页最近收到的消息,刷新后清空,不补发历史,且不提供端到端加密。 HDR 转换输出为 SDR,不代表端到端 HDR 或多声道支持。既有房主麦克风与立体声能力保留。 ### English This feature update brings text chat and reactions to Piik, alongside improvements to Windows audio capture, picture colors and self-hosting options. #### New features - **Chat while watching.** Send messages in a movable, resizable window, or enable on-screen chat. Friends can keep chatting after the host stops sharing. - **Reactions.** Select a person on the sofa to react above yourself or send a tomato and other reactions to a friend. Participants animate the same shared event. - **Exclude application audio.** When sharing a whole screen with Windows App, exclude one application and its child processes, useful when using a separate voice app. Source audio stops if the selected app exits, preventing a return to unfiltered system sound. - **Optional SFU-only hosting.** Site operators can require shared video and audio to pass through the media server. P2P-first remains the default; App Public invite remains P2P-only. - **Windows HDR-to-SDR conversion.** Native capture and source thumbnails automatically convert HDR sources to SDR for the existing viewing path. #### Fixes and improvements - Correct native color-conversion ranges and matrices, addressing reproduced crushed shadows, clipped highlights and color shifts. - Correct stale demand and frame evidence during shared-encoder handoffs to protect the current picture. Prevent events from a replaced capture from affecting its successor. - Align new controls, floating panels and source-picker copy, with updated Chinese and English guides. #### Using this update Chat and reactions require updated site pages and Server. Audio exclusion requires updated pages and a Windows App that supports the capability. Chat retains only recent messages received by the current page, clears on refresh and does not replay history. It is not end-to-end encrypted. HDR conversion produces SDR; it does not add end-to-end HDR or surround sound. Existing host microphone commentary and stereo support remain available. ## Verification / 验证 - Web type checks, 78 test files / 1275 tests and production build: PASS. - Go core tests, formatting/vet and target builds: PASS; Darwin cgo remains platform-limited on this Windows runner. - Native build/check/color probes and synthetic HDR-to-SDR H.264/VP8 browser reception: PASS. - Access/privacy gate, Native H.264 SFU-only media gate and local Auto/H.264 Host gate: PASS. - Three real production pages: chat/reactions, stop/resume, idle-room join, host departure/return, offline draft recovery and invitation revocation: PASS. - Synthetic parent/child process-audio exclusion and target lifetime: PASS; no raw audio retained. - Windows candidate archive extraction and packaged Local startup/shutdown: PASS. - Documentation and website build: PASS. - [Candidate CI](https://github.com/TNTcraftHIM/Piik/actions/runs/36873766646) at `f26cd208d03bc0dcbe353f8cac217f993216b0a3`: Go core and race checks, Web tests, Server/container checks and Windows/macOS/Linux App packaging all PASS. Publication was skipped as intended. The owner accepted the UI/model and bounded local walkthrough for phase closure. Physical HDR/mixed displays, mobile keyboard, real voice applications across output devices and macOS/Linux capture remain unverified. Existing field reports without matched evidence are not claimed resolved. The owner authorized v1.7.0 publication on 2026-10-02. The final documentation-only commit records that authorization; product code matches the verified candidate above. ## Impact / 影响 Authorized version: **v1.7.0**, matching the local release planner. Current wire contracts remain Browser/server 23, Native control 9 and capture 7. Optional capabilities gate new functionality; existing room/media authority remains owned by the existing services. No new ports, message persistence, room voice or automatic room creation on page visit. Updated README, guides, standards, research evidence and TODO stay with the candidate phase.
503 lines
17 KiB
Go
503 lines
17 KiB
Go
package route
|
|
|
|
import (
|
|
"github.com/TNTcraftHIM/Piik/internal/server/ordered"
|
|
"github.com/TNTcraftHIM/Piik/internal/server/protocol"
|
|
)
|
|
|
|
// Resource is the caller-owned SFU/overlap allocation the controller stores,
|
|
// moves between collections and compares by pointer identity (TS: the bare
|
|
// Resource type parameter, always used through JS Set semantics). The
|
|
// controller never reads its fields; they exist for the router and tests.
|
|
type Resource struct {
|
|
Kind ResourceKind
|
|
// EndpointPeerID is set for ResourceOverlap.
|
|
EndpointPeerID string
|
|
// Fence fields (RoomID, ShareGeneration, PublicationGeneration) are set
|
|
// for sfu-publication and sfu-subscription; ViewerPeerID only for the
|
|
// subscription. All are opaque IDs.
|
|
RoomID string
|
|
ShareGeneration string
|
|
PublicationGeneration string
|
|
ViewerPeerID string
|
|
ConnectionID string
|
|
// Released is flipped by the router once the allocation is freed.
|
|
Released bool
|
|
}
|
|
|
|
// ResourceKind is the RouteResource discriminator of hybrid-media-router.ts.
|
|
type ResourceKind string
|
|
|
|
// Resource kinds.
|
|
const (
|
|
ResourceOverlap ResourceKind = "overlap"
|
|
ResourceSfuSubscription ResourceKind = "sfu-subscription"
|
|
ResourceSfuPublication ResourceKind = "sfu-publication"
|
|
)
|
|
|
|
// UpstreamKind discriminates CandidateTuple, CommittedEdge, committedEdgeSeed
|
|
// and QualityUpstream (TS kind: "peer" | "sfu").
|
|
type UpstreamKind string
|
|
|
|
// Upstream kinds.
|
|
const (
|
|
UpstreamPeer UpstreamKind = "peer"
|
|
UpstreamSfu UpstreamKind = "sfu"
|
|
)
|
|
|
|
// Transport is the edge transport (TS transport: "direct" | "sfu").
|
|
type Transport string
|
|
|
|
// Transports.
|
|
const (
|
|
TransportDirect Transport = "direct"
|
|
TransportSfu Transport = "sfu"
|
|
)
|
|
|
|
// PublicationPlan is the SFU tuple action (TS publication: "reuse" | "create" | "replace").
|
|
type PublicationPlan string
|
|
|
|
// Publication plans.
|
|
const (
|
|
PublicationReuse PublicationPlan = "reuse"
|
|
PublicationCreate PublicationPlan = "create"
|
|
PublicationReplace PublicationPlan = "replace"
|
|
)
|
|
|
|
// ReservationKind discriminates CandidateReservation.
|
|
type ReservationKind string
|
|
|
|
// Reservation kinds.
|
|
const (
|
|
ReservationDirect ReservationKind = "direct"
|
|
ReservationSfuReuse ReservationKind = "sfu-reuse"
|
|
ReservationSfuCreate ReservationKind = "sfu-create"
|
|
)
|
|
|
|
// RetirementKind discriminates EndpointRetirement.
|
|
type RetirementKind string
|
|
|
|
// Retirement kinds.
|
|
const (
|
|
RetireEdge RetirementKind = "edge"
|
|
RetirePublication RetirementKind = "publication"
|
|
)
|
|
|
|
// TransitionKind discriminates EndpointTransition.
|
|
type TransitionKind string
|
|
|
|
// Transition kinds.
|
|
const (
|
|
TransitionNone TransitionKind = "none"
|
|
TransitionOverlap TransitionKind = "overlap"
|
|
TransitionBoundedGap TransitionKind = "bounded-gap"
|
|
)
|
|
|
|
// SenderQualityState is the sender-side health sample state
|
|
// (TS "unknown" | "healthy" | "degraded").
|
|
type SenderQualityState string
|
|
|
|
// Sender quality states.
|
|
const (
|
|
SenderQualityUnknown SenderQualityState = "unknown"
|
|
SenderQualityHealthy SenderQualityState = "healthy"
|
|
SenderQualityDegraded SenderQualityState = "degraded"
|
|
)
|
|
|
|
// DemandReason mirrors protocol RouteDemandReason.
|
|
type DemandReason string
|
|
|
|
// Demand reasons.
|
|
const (
|
|
DemandJoin DemandReason = "join"
|
|
DemandEdgeUnavailable DemandReason = "edge-unavailable"
|
|
DemandParentDeparted DemandReason = "parent-departed"
|
|
DemandCapacityReduction DemandReason = "capacity-reduction"
|
|
DemandSfuBootstrap DemandReason = "sfu-bootstrap"
|
|
DemandDirectConvergence DemandReason = "direct-convergence"
|
|
DemandQualityConvergence DemandReason = "quality-convergence"
|
|
DemandRootConvergence DemandReason = "root-convergence"
|
|
)
|
|
|
|
// FinalRoute mirrors protocol RouteDiagnosticFinalRoute.
|
|
type FinalRoute string
|
|
|
|
// Final routes.
|
|
const (
|
|
FinalRouteDirect FinalRoute = "direct"
|
|
FinalRouteSfu FinalRoute = "sfu"
|
|
FinalRouteWaiting FinalRoute = "waiting"
|
|
FinalRouteFailed FinalRoute = "failed"
|
|
)
|
|
|
|
// RejectionBucket mirrors protocol RouteDiagnosticRejectionBucket.
|
|
type RejectionBucket string
|
|
|
|
// Rejection buckets.
|
|
const (
|
|
RejectionNone RejectionBucket = "none"
|
|
RejectionStale RejectionBucket = "stale"
|
|
RejectionEndpointCapacity RejectionBucket = "endpoint-capacity"
|
|
RejectionSfuAdmission RejectionBucket = "sfu-admission"
|
|
RejectionCandidateFailed RejectionBucket = "candidate-failed"
|
|
RejectionFirstFrameTimeout RejectionBucket = "first-frame-timeout"
|
|
RejectionOperationDeadline RejectionBucket = "operation-deadline"
|
|
RejectionAborted RejectionBucket = "aborted"
|
|
)
|
|
|
|
// RouteQualityEvidenceResult is the ObserveQualityEvidence outcome.
|
|
type RouteQualityEvidenceResult string
|
|
|
|
// Quality evidence outcomes.
|
|
const (
|
|
QualityEvidenceRejected RouteQualityEvidenceResult = "rejected"
|
|
QualityEvidenceAccepted RouteQualityEvidenceResult = "accepted"
|
|
QualityEvidenceObserved RouteQualityEvidenceResult = "observed"
|
|
)
|
|
|
|
// CandidateTuple is one route candidate: a direct edge from ParentPeerID
|
|
// (Kind UpstreamPeer, Transport always TransportDirect, Regenerate = rebuild
|
|
// the same edge with a fresh connection) or an SFU edge (Kind UpstreamSfu,
|
|
// Publication set). TS: CandidateTuple.
|
|
type CandidateTuple struct {
|
|
Kind UpstreamKind
|
|
ParentPeerID string
|
|
Transport Transport
|
|
Regenerate bool
|
|
Publication PublicationPlan
|
|
}
|
|
|
|
// CandidateReservation is what the caller allocated before
|
|
// BeginCurrentCandidate. Edge/Publication are set per Kind
|
|
// (direct: neither; sfu-reuse: Edge, Borrowed when it is another holder's
|
|
// live subscription and must not be released; sfu-create: Edge and
|
|
// Publication). Overlap is optional for every kind. TS: CandidateReservation.
|
|
type CandidateReservation struct {
|
|
Kind ReservationKind
|
|
Edge *Resource
|
|
Publication *Resource
|
|
Borrowed bool
|
|
Overlap *Resource
|
|
}
|
|
|
|
// EndpointRetirement is the producer retirement a bounded-gap transition
|
|
// requires: an existing direct edge (RetireEdge: Child*/Parent*/Transport/
|
|
// ConnectionID) or the Host publication (RetirePublication: HostSessionID/
|
|
// Generation/ConnectionID). TS: EndpointRetirement.
|
|
type EndpointRetirement struct {
|
|
Kind RetirementKind
|
|
ChildPeerID string
|
|
ChildSessionID string
|
|
ParentPeerID string
|
|
ParentSessionID string
|
|
Transport Transport
|
|
ConnectionID string
|
|
HostSessionID string
|
|
Generation string
|
|
}
|
|
|
|
// EndpointTransition says how the producer's copy budget absorbs the
|
|
// candidate. ProducerPeerID is nil only for TransitionNone on an sfu/reuse
|
|
// plan (TS omitted it there and endpointTransitionEquals compares it).
|
|
// Retire is set only for TransitionBoundedGap. TS: EndpointTransition.
|
|
type EndpointTransition struct {
|
|
Kind TransitionKind
|
|
ProducerPeerID *string
|
|
Retire *EndpointRetirement
|
|
}
|
|
|
|
// CandidatePlan is a tuple with its endpoint transition. TS: CandidatePlan.
|
|
type CandidatePlan struct {
|
|
Tuple CandidateTuple
|
|
EndpointTransition EndpointTransition
|
|
}
|
|
|
|
// CommittedEdge is a child's one upstream edge in the committed graph.
|
|
// Peer edges (Kind UpstreamPeer) set ParentPeerID/ParentSessionID and leave
|
|
// Resource nil; SFU edges (Kind UpstreamSfu) set PublicationGeneration and
|
|
// Resource. TS: CommittedEdge.
|
|
type CommittedEdge struct {
|
|
Kind UpstreamKind
|
|
ChildSessionID string
|
|
ParentPeerID string
|
|
ParentSessionID string
|
|
PublicationGeneration string
|
|
Transport Transport
|
|
ConnectionID string
|
|
Usable bool
|
|
PhysicalActive bool
|
|
Resource *Resource
|
|
}
|
|
|
|
// HostPublication is the single live SFU ingress. TS: HostPublication.
|
|
type HostPublication struct {
|
|
Generation string
|
|
HostSessionID string
|
|
ConnectionID string
|
|
Usable bool
|
|
PhysicalActive bool
|
|
Resource *Resource
|
|
}
|
|
|
|
// ConnectionAttemptProgress is the NAT-prediction attempt counter
|
|
// (initial attempt plus retries; the controller owns Total).
|
|
type ConnectionAttemptProgress struct {
|
|
Current int
|
|
Total int
|
|
}
|
|
|
|
// CurrentAttempt is OperationSnapshot.current: the live candidate attempt.
|
|
// ConnectionAttempt is nil when the attempt has no NAT opportunity.
|
|
type CurrentAttempt struct {
|
|
Tuple CandidateTuple
|
|
Revision int64
|
|
ConnectionID string
|
|
ConnectionAttempt *ConnectionAttemptProgress
|
|
}
|
|
|
|
// OperationSnapshot is a deep copy of the in-flight operation plus the
|
|
// derived WakeAtMs. Current is nil without a live attempt. TS: OperationSnapshot.
|
|
type OperationSnapshot struct {
|
|
ChildPeerID string
|
|
ChildSessionID string
|
|
DemandPeerID string
|
|
Reason DemandReason
|
|
BaseRevision int64
|
|
FactVersion int64
|
|
Candidates []CandidatePlan
|
|
Cursor int
|
|
DeadlineAtMs int64
|
|
WakeAtMs int64
|
|
Current *CurrentAttempt
|
|
}
|
|
|
|
// RouteSnapshot is the committed graph as the router reads it.
|
|
// UpstreamByViewer is a fresh insertion-ordered copy (child peerId -> edge);
|
|
// HostPublication is a shallow copy or nil; Operation is nil when idle.
|
|
type RouteSnapshot struct {
|
|
Revision int64
|
|
Paused bool
|
|
FactVersion int64
|
|
UpstreamByViewer *ordered.Map[string, CommittedEdge]
|
|
HostPublication *HostPublication
|
|
Operation *OperationSnapshot
|
|
}
|
|
|
|
// ReconcileResult is the scheduler outcome. TS: ReconcileResult.
|
|
type ReconcileResult struct {
|
|
Operation *OperationSnapshot
|
|
RemovedPeerIDs []string
|
|
FailedPeerIDs []string
|
|
Released []*Resource
|
|
}
|
|
|
|
// SettleResult is the outcome of candidate settlement or active replacement.
|
|
// Committed is true only when CandidateReady committed the attempt (TS: optional
|
|
// committed, read as truthy by the router). TS: SettleResult.
|
|
type SettleResult struct {
|
|
Accepted bool
|
|
Committed bool
|
|
FailedPeerIDs []string
|
|
ActiveRevision int64
|
|
Released []*Resource
|
|
}
|
|
|
|
// SenderQualityEvidenceResult is the outcome of the two sender-side
|
|
// observers. TS declares it separately with a required committed flag; the
|
|
// Go shape is identical to SettleResult.
|
|
type SenderQualityEvidenceResult = SettleResult
|
|
|
|
// BeginResult is the outcome of the cursor-guarded candidate calls.
|
|
type BeginResult struct {
|
|
Accepted bool
|
|
Operation *OperationSnapshot
|
|
FailedPeerIDs []string
|
|
Released []*Resource
|
|
}
|
|
|
|
// ParticipantInput describes a connected participant. TS: ParticipantInput.
|
|
type ParticipantInput struct {
|
|
PeerID string
|
|
Role protocol.Role
|
|
SessionID string
|
|
EffectiveDownstreamCapacity int
|
|
}
|
|
|
|
// EdgeGuard identifies one committed edge exactly. ParentSessionID is only
|
|
// compared for peer edges; callers pass the edge's own ParentSessionID for
|
|
// those and leave it empty for SFU edges. TS: EdgeGuard.
|
|
type EdgeGuard struct {
|
|
ChildPeerID string
|
|
ChildSessionID string
|
|
RouteRevision int64
|
|
ConnectionID string
|
|
ParentSessionID string
|
|
}
|
|
|
|
// ParentEdgeGuard identifies a direct edge from the parent's side.
|
|
type ParentEdgeGuard struct {
|
|
ParentPeerID string
|
|
ParentSessionID string
|
|
RouteRevision int64
|
|
ConnectionID string
|
|
}
|
|
|
|
// PublicationGuard identifies the Host publication exactly. TS: the inline
|
|
// guard of invalidateHostPublication and retireHostPublication.
|
|
type PublicationGuard struct {
|
|
HostSessionID string
|
|
RouteRevision int64
|
|
Generation string
|
|
ConnectionID string
|
|
}
|
|
|
|
// AdoptDirectConnectionInput is an EdgeGuard plus the replacement
|
|
// connection. TS: EdgeGuard & { newConnectionId }.
|
|
type AdoptDirectConnectionInput struct {
|
|
EdgeGuard
|
|
NewConnectionID string
|
|
}
|
|
|
|
// CandidateGuard identifies the live attempt exactly. TS: CandidateGuard.
|
|
type CandidateGuard struct {
|
|
ChildPeerID string
|
|
ChildSessionID string
|
|
Revision int64
|
|
ConnectionID string
|
|
}
|
|
|
|
// CandidateCursorGuard identifies one candidate slot of the current
|
|
// operation: it must still be at Cursor with an equal Plan, built at
|
|
// FactVersion on BaseRevision. TS: CandidateCursorGuard.
|
|
type CandidateCursorGuard struct {
|
|
ChildPeerID string
|
|
ChildSessionID string
|
|
BaseRevision int64
|
|
FactVersion int64
|
|
Cursor int
|
|
Plan CandidatePlan
|
|
}
|
|
|
|
// BeginInput is the BeginCurrentCandidate input. PublicationGeneration and
|
|
// PublicationConnectionID are required for sfu create/replace tuples;
|
|
// HostSessionID is required for every SFU tuple (empty = TS undefined,
|
|
// rejected the same way). TS: the inline input of beginCurrentCandidate.
|
|
type BeginInput struct {
|
|
Guard CandidateCursorGuard
|
|
NowMs int64
|
|
ConnectionID string
|
|
Reservation CandidateReservation
|
|
PublicationGeneration string
|
|
PublicationConnectionID string
|
|
HostSessionID string
|
|
}
|
|
|
|
// CandidateProof carries the Viewer's one-shot relative quality approval.
|
|
type CandidateProof struct {
|
|
RelativeQualityApproved bool
|
|
}
|
|
|
|
// QualityUpstream names the upstream a receiver-side window was measured
|
|
// on: PeerID is set only for UpstreamPeer. TS: RouteQualityEvidenceInput.upstream.
|
|
type QualityUpstream struct {
|
|
Kind UpstreamKind
|
|
PeerID string
|
|
}
|
|
|
|
// RouteQualityEvidenceInput is one receiver-side quality window. Only
|
|
// FramesDecodedDelta, FreezeCountDelta, FreezeDurationMsDelta,
|
|
// PauseCountDelta and PauseDurationMsDelta of Metrics are read.
|
|
type RouteQualityEvidenceInput struct {
|
|
ChildPeerID string
|
|
ChildSessionID string
|
|
RouteRevision int64
|
|
ConnectionID string
|
|
Upstream QualityUpstream
|
|
PresentationEpoch int64
|
|
WindowMs int64
|
|
Metrics protocol.ViewerQualityEvidenceMetrics
|
|
AcceptedAtMs int64
|
|
}
|
|
|
|
// SenderQualityEvidenceInput is one sender-side health sample from a parent
|
|
// about one child. SenderIdentity and SampleTimestampMs are nullable.
|
|
type SenderQualityEvidenceInput struct {
|
|
ParentPeerID string
|
|
ParentSessionID string
|
|
ChildPeerID string
|
|
RouteRevision int64
|
|
ConnectionID string
|
|
SenderIdentity *string
|
|
SampleTimestampMs *int64
|
|
State SenderQualityState
|
|
AcceptedAtMs int64
|
|
}
|
|
|
|
// SfuPublisherQualityEvidenceInput is one Host->SFU ingress health sample.
|
|
type SfuPublisherQualityEvidenceInput struct {
|
|
HostPeerID string
|
|
HostSessionID string
|
|
PublicationGeneration string
|
|
RouteRevision int64
|
|
State SenderQualityState
|
|
SampleTimestampMs *int64
|
|
AcceptedAtMs int64
|
|
}
|
|
|
|
// Options configures a Controller. DebugRoomID empty disables the sanitised
|
|
// route debug events. TS: ControllerOptions.
|
|
type Options struct {
|
|
HostPeerID string
|
|
DebugRoomID string
|
|
// DebugLog receives sanitized route events. nil disables them; the effect
|
|
// layer owns environment, logger and retention policy.
|
|
DebugLog func(string, ...any)
|
|
EndpointMediaCopyCapacity int
|
|
OperationTimeoutMs int64
|
|
SfuEnabled bool
|
|
SfuOnly bool
|
|
QualityConvergenceEnabled bool
|
|
NatPredictionEnabled bool
|
|
}
|
|
|
|
// Controller never locks: the caller holds signal.Server.mu around every call.
|
|
type Controller struct {
|
|
// hostPeerID is its own mutable field because RebindHostIdentity
|
|
// reassigns it; the other
|
|
// options are copied once and never change.
|
|
hostPeerID string
|
|
debugRoomID string
|
|
debugLog func(string, ...any)
|
|
endpointMediaCopyCapacity int
|
|
operationTimeoutMs int64
|
|
sfuEnabled bool
|
|
sfuOnly bool
|
|
qualityConvergenceEnabled bool
|
|
natPredictionEnabled bool
|
|
|
|
// Insertion order is load-bearing for participants, upstreamByViewer and
|
|
// directContinuations; the opportunity ledgers and the
|
|
// retiring set are ordered for the same delete-while-iterating semantics.
|
|
participants ordered.Map[string, *participant]
|
|
upstreamByViewer ordered.Map[string, *CommittedEdge]
|
|
hostPublication *HostPublication
|
|
operation *operation
|
|
revision int64
|
|
latestRevision int64
|
|
factVersion int64
|
|
nextJoinOrder int64
|
|
paused bool
|
|
routeTimings map[string]*routeTimingRecord
|
|
qualityObservations map[string]*routeQualityObservation
|
|
senderQualityObservations map[string]*senderQualityObservation
|
|
senderQualityBaselines map[string]bool // tri-state: absent / false / true (read with comma-ok)
|
|
senderQualityRegenerationBlocks map[string]senderQualityIdentity
|
|
sfuPublisherQualityObservation *sfuPublisherQualityObservation
|
|
qualityBaselinesPending map[string]struct{}
|
|
directContinuations ordered.Map[string, *directContinuation]
|
|
retiringPublicationGenerations ordered.Map[string, struct{}]
|
|
sfuBootstrapIntent *sfuBootstrapIntent
|
|
consumedSfuBootstrapOpportunities ordered.Map[string, int]
|
|
rootConvergenceRootPeerID string // "" = TS undefined
|
|
}
|