Files
client/docs/evidence/official-parity/streams-extras-implementation.json
T
omar ceecbb790a docs: record source parity evidence and remaining acceptance gaps
Document accumulated interoperability findings and current source-backed design. Record build-specific visual results, matched acceleration policy, passing packaged behavior checks, and explicit native/ARM and strict visual acceptance limits. No complete 1:1 claim.
2026-11-01 19:47:52 +03:00

34 lines
4.8 KiB
JSON

{
"date": "2026-11-01",
"slice": "AstraStreams account-free stream extras",
"verification": "Implementation and authored tests only; no tests/build/device/capture/audio/native window operation executed by this worker. QA owns frozen controlled offscreen validation.",
"source": {
"officialJavascript": "Installed TeamSpeak html/client_ui/main.js; readonly formatted derivative C:/Users/Admin/tmp/ts6seg/main.pretty.js",
"visibility": "137881-137886, 138784-138805: hide is independent of leave; own and inactive visibility gates",
"accountBoundary": "135712-135718: server-only calls=[] yields stream seats, participants=[], callRef=null. Avatar/duet and call-bar branches require account-call peers and are intentionally excluded, not replaced with fake participants.",
"cardGrid": "63335-63341 minH120 aspect16/9; 135583-135640 row-height solver/capacity; 135984-136028 paged centered cards",
"focus": "136298-136417 source-aspect focused tile, choose side/bottom strip by focused area, overflow pages",
"internalPip": "135784-135814 geometry; 136593-136638 host validity, occupied-corner and cycle fallback. Distinct from existing Chromium native PiP.",
"issues": "65280-65350 official thresholds; Chromium timestamps milliseconds rather than native microseconds"
},
"implemented": [
"Per-connection hidden IDs/manual order/focus/pages/internal PiP placements; same video/session remains subscribed when hidden, paged, rearranged or moved into server tree overlay.",
"Official server-stream card-grid and focus-strip geometry; internal Shift-drop PiP with same DOM media, explicit unpin/reset, invalid host/collision fallback.",
"Standalone Electron pop-out adopts the existing player DOM/video into fixed same-origin scriptless document: same remote PeerConnection/MediaStream, controls retained, child close returns original tile. Main-frame one-use grant pins connection epoch. Child has no preload/Node; navigation/new-window denied. Offscreen mode always hidden, nonfocusable, offscreen and muted even on explicit present acknowledgement.",
"Block-and-deny by stable viewer UID, kick without ban, ban and unblock management; source pause disables existing tracks without closing the publication.",
"Live quality settings use existing publisher.updateOptions source constraints and RTCRtpSender.setParameters; no pretend local settings-only control.",
"Actual getStats inbound/outbound counters, deltas, codec/cipher/encoder/decoder and source-backed issues. Missing capture/preprocess native-only metrics are omitted, not fabricated.",
"Camera options enumerate getCapabilities on the explicitly opened preview/live track only; constraints preserve exact device ID and supported image controls are checked against settings.",
"Application audio All/Exclude use fresh safe native application enumeration, capture all allowed roots/streams via existing WASAPI process-tree or Pulse monitor-stream helpers, refresh one second and update worklet nodes; never alias selected-only IDs or move system routing. Eight-root/stream limit fails explicitly rather than truncating."
],
"limitations": [
"No SFU interoperable implementation: new sfu-request-construction.json recovers request serializers and token field, but token origin/renewal/socket URL/TLS, full exact types/values and mediasoup transport-to-Chromium SDP still need authoritative tracing; no SFU server exercised.",
"QA observed the hidden child loading/adopting DOM but its unmodified Electron44.9.3 OSR viewport remained 0x0 even after setContentSize. See popout-offscreen-limitation.json for source diagnosis. Main authorized test-only CDP viewport emulation to exercise real generated media/control/restore behavior; that is not native offscreen paint or visible-window proof. Production construction remains unchanged; native Chromium video PiP/fullscreen was not invoked.",
"Native minimized-window reason unavailable from Chromium track mute. UI says source suspended rather than asserting minimized; mute does not terminate publication.",
"All/Exclude audio includes safely observable native app roots/streams, not inaccessible/protected sessions or OS sounds lacking process identity. Newly observable apps arrive on one-second enumeration. Windows exclusion of a child sharing a capture ancestor fails closed with explanation; no unsafe endpoint-loopback subtraction.",
"Camera physical capabilities/settings and actual native audio scopes remain unexercised under no-device/no-capture safety restriction."
],
"tests": ["test/stream-extras.test.mjs", "test/stream-publisher.test.mjs", "test/appaudio-main.test.js", "test/appaudio-renderer.test.mjs", "test/stream-popout-main.test.js"],
"qaHarness": "scripts/smoke-stream-stage-offscreen.mjs (AstraQA owner; generated tracks/multiple independent connection scopes only)"
}