feat(observatory): persist scene profiles and stable device view bindings
This commit is contained in:
@@ -8,6 +8,7 @@ export function ObservationTimeline({
|
||||
sourceCount,
|
||||
mode = "live-only",
|
||||
seekable = false,
|
||||
followingLive,
|
||||
synchronization = "host-arrival-best-effort",
|
||||
rangeNs = null,
|
||||
currentNs = null,
|
||||
@@ -28,6 +29,8 @@ export function ObservationTimeline({
|
||||
sourceCount: number;
|
||||
mode?: ObservationTimelineMode;
|
||||
seekable?: boolean;
|
||||
/** Defined by a live receiver with a retained native recording. */
|
||||
followingLive?: boolean;
|
||||
synchronization?: "host-arrival-best-effort" | "shared-clock" | "frame-accurate";
|
||||
rangeNs?: { min: number; max: number } | null;
|
||||
currentNs?: number | null;
|
||||
@@ -69,6 +72,7 @@ export function ObservationTimeline({
|
||||
className={`observation-timeline nodedc-viewport-controls ${className}`.trim()}
|
||||
data-active={active ? "true" : undefined}
|
||||
data-mode={mode}
|
||||
data-live-history={followingLive === undefined ? undefined : "true"}
|
||||
data-accumulation={accumulationValue !== null ? "true" : undefined}
|
||||
>
|
||||
{accumulationValue !== null ? (
|
||||
@@ -140,18 +144,18 @@ export function ObservationTimeline({
|
||||
? `${formatTimelineDuration(elapsedSeconds)} / ${formatTimelineDuration(durationSeconds)}`
|
||||
: active ? "LIVE" : "—:—:—.———"}
|
||||
</code>
|
||||
<small>
|
||||
{followingLive === undefined ? <small>
|
||||
{buffered ? `${sourceCount} каналов` : `${synchronizationLabel} · буфер не включён`}
|
||||
</small>
|
||||
</small> : null}
|
||||
</div>
|
||||
{showJumpToEnd ? (
|
||||
<Button variant="ghost" shape="pill"
|
||||
className="observation-timeline__follow"
|
||||
data-active={!buffered && active ? "true" : undefined}
|
||||
data-active={(followingLive === undefined ? !buffered && active : followingLive && active) ? "true" : undefined}
|
||||
disabled={buffered ? !onJumpToEnd : true}
|
||||
onClick={onJumpToEnd}
|
||||
>
|
||||
{buffered ? "К КОНЦУ" : "ЭФИР"}
|
||||
{followingLive !== undefined || !buffered ? "ЭФИР" : "К КОНЦУ"}
|
||||
</Button>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user