This line's guide images already come from production components, and
the maintenance branch owns its 2.x screenshots and README stills. The
fixture under site/film/ui still built the 2.x room here, from
components the 3.0 product's entry no longer reaches, and was the one
thing outside previews and tests that kept them.
Gone: the fixture, its entry, page and license output in the website
build and its include in the scripts' TypeScript project; the 14
modules only it kept (the 2.x status model, presence and viewer
presentation, and the playback bar, room chip, couch, status
indicator, host toolbar and room interactions panel); and what only
they kept, followed until nothing more fell out: the title-frame
catalogues of each locale with their reader and useDocumentTitle, 109
copy keys, one stylesheet and the rules of 130 classes, Row, the TV
frame's indicator slot, the SFU route and relay-volunteer sections of
PlaybackSettings, and the shared-protocol shapes only they read.
Kept: the public film and its build, the product's own title
(usePageTitle with composeDocumentTitle), and every preview section and
test assertion about product components. The playback preview and the
status scenarios existed for the removed modules and went. Four test
files held only removed modules and went, with the title hook's; four
mixed files lost the cases about them.
How it was established: the product's entry reaches 303 files before
and after; the type check proves the copy keys, since every use is
typed against the English catalogue; every removed rule belongs to a
class no source file writes, and no class still written lost every
rule it had, except lr-playback-compact-picture, whose only rules
needed the old bar as an ancestor.
Documents: the three that described the fixture no longer do and keep
the rule that current screenshots use real components. In the visual
language standard two rows of the text-only table described the title
catalogues and the status model and are removed, with the sentence
that named the presence module, so that its links resolve.
canReceivePeerWatch took "is hls.js supported" as a parameter, and
three callers each found that answer for themselves: the page kept it
in component state, the session probed afresh for every route, and
HTMLVideoMedia probed twice in one load, once to choose the reader and
once to choose the player. The answers could differ. watch-media now
owns the probe: one in flight at a time, its last answer kept, a failed
one retried by the next caller, and canReceivePeerWatch(format) reads
it with no parameter. The identical MediaSource checks of the DASH and
MP4 adapters, and their inverse in track selection, are one
hasWatchMediaSource beside the worker check.
What changes:
- A player uses one answer for both its byte reader and its decoder,
so the reader's address can no longer be paired with the other
player.
- A stage that mounts again shows what an earlier probe found at once,
where it showed the hint to use the App or a secure page until its
own probe returned.
- A probe that throws in the page is no longer an unhandled rejection.
Kept: a route chosen by hand and a newly arrived grant still try the
player without waiting for the probe; the codec checks at track
selection and at playback.
Tests: a failed probe at a join and its retry shared with the stage,
one decision for each peer player, and each format's outcome with the
worker and MediaSource present or absent independently.
The HLS and the DASH adapters each kept a pattern of the reader codes
allowed to reach the person, and the two had drifted: DASH dropped a
failed source and a resource limit, which HLS kept. The MP4 path kept
no list and passed any reader rejection on, text included.
watchReaderFailures, beside WatchByteReader, is that list once: what
room delivery, the App's source reader and the player's bounded reads
may answer. HLS and DASH test it; the MP4 reader is wrapped so that a
rejection outside it is watch_media_failed, and cancellation keeps the
signal's reason.
What changes:
- DASH shows the source-unavailable guidance for watch_source_failed
and the cannot-forward guidance for watch_resource_limit, as HLS did.
- HLS and DASH keep the codes Core carries through relays
(unknown_outcome, unsupported), a lost room or App connection, and
the App reader's diagnoses that MP4 already showed.
- DASH tests reader codes only when its reader bridge is installed; a
direct load keeps its own manifest and capability codes.
- An MP4 read can no longer put text that is not a listed code into the
player's state, nor claim the capability failure that selects the
native fallback.
Left alone: the two manifest codes Native's playlist rewriting can
answer, which neither mapper admitted before.
Tests: HLS for a reader's code against an HTTP status and for the newly
shared codes; DASH through the real scheme plugin for a rejected load
and an error event; MP4 for an unlisted probe failure, a later read
claiming the capability failure, and a listed later failure.
The stage offered a retry for a subscribed picture whenever the channel
was connected. With the room's host away the action could only fail at
its first check, while the offer to watch a new source in the same room
was already disabled by the room's availability. The retry now uses the
same two conditions.
Found by listing every place the page decides whether a room can be
acted on: the decisions agree by purpose, and this was the one place
where an offered action and its own precondition differed.
The people panel and the mention suggestions each kept their own
request, loading and failed flags, merged list of ids and next cursor
around queryProfiles, and the two had drifted. useProfileDirectory,
beside useChannel, is that reading once: one request at a time for a
query, unseen ids appended in the order they arrive, the cursor
advanced only by a page that succeeded, and a failure that keeps the
rows and the cursor for a retry. A caller replaces the query object
when its scope changes; the rows, cursor and status of the old scope
are gone in the same render, and its pending read is aborted.
What changes:
- A second request for a page of mentions while one is pending no
longer aborts the first and sends another; the first stays, as the
people panel had it. Both mention controls already guarded against
it, so only an overlapping press and click differ.
- A retry of a failed first page of mentions sends that page directly.
It restarted the whole search before. The highlight still returns to
the first row.
- Neither view can show a row or a retry of the previous scope for one
render after the scope changes; the reset ran in an effect before.
Kept as each caller had them: the people panel loads only while
connected, merges the people seen live while it is open, and starts
again from the first page when the directory has ended and the site
counts more people than it has listed.
A test drives the hook: a failed first page and a failed later page
retried at their own cursor, overlapping demand as one request, ids in
order without repeats, and a late answer after the query was replaced
or closed.
"Where is this playback now" was written out four times: watchPosition
for a room's anchor, and three hand-written copies for a local sample,
in the owner's and the viewer's look for a move the person made and in
freezing a source that went away. The local samples now use
watchPosition with the time they were observed as the anchor. "Did the
person move it" is decided once for each observation: between two
paused samples any change of position counts; otherwise a ready sample
must differ from its projection by more than the provider's tolerance
or the drift default. The two default tolerances have names, in
seconds.
One behaviour changes, in the viewer's branch. Between two paused
samples the viewer compared the move with the tolerance, where the
owner compared exactly. With a paused room at 10 s and a provider
tolerance of 2 s, a viewer who moved to 12 s and then to 13 s was
outside the room's tolerance and had made no single move larger than
it, so the look treated the position as drift and could pull it back.
The person is now offered Sync at 13 s, as after one large move. A
paused position is exact, as the forced alignment of a paused anchor
already holds. The viewer's guard for a shared seek that an iframe
reports one observation late is kept: it still requires the earlier
sample to have been ready, or both to be paused.
Left alone: an owner publishes a first ready sample that is displaced,
where a viewer's first ready sample after buffering is allowed to
rejoin. No assertion settled that for the owner; a test now holds what
it does.
Tests: paused scrubs that add up, the owner's first ready sample and a
move measured at the previous rate, a forced running alignment near a
future anchor, and a source lost while paused, ended, waiting and
playing.
The Browser's encrypted input bounds the text it has queued for
decryption at 8,192 characters and closes when a peer exceeds it. The
packet's `data` is what a peer put in a frame, and only its truthiness
was checked before it was counted: an object has no length, the count
became NaN, and from then on no packet could exceed the bound until the
endpoint was replaced. receive now takes the value as unknown and drops
anything but text before counting it, as Native's reader already
requires three text fields.
Found by reading the two implementations of the envelope side by side.
A pending download's sink was taken out of the sink map in six places,
each with its own subset of the steps: tell the delivery to cancel, tell
the room's writer that receiving stopped, dispose the local writer and
its temporary file, tell the listeners. stopSink is now the only remover
and takes the reason: an error to end the readers with, "clear" for a
cache clear that keeps the entry until its file is gone, or "released"
when the file is already gone or was never made.
What each caller knows stays with it. The room's writer is told only
while the room is still this endpoint's to tell, which is read from the
rooms the endpoint holds, so a lost room and a reset send no withdrawal
and publish once, as before. A reader that aborts cancels the delivery
at once, through the runtime it already holds, so the same file can be
asked for again immediately.
Two failures no longer skip the rest of the retirement:
- When the last reader aborted and the delivery's cancel threw, the
withdrawal to the writer and the disposal of the temporary file were
skipped. Both now happen.
- When a sink failed to start and the rollback's cancel threw, that
error replaced the starting error and the half-made sink was never
disposed. Readers now get the starting error and the writer and file
are released.
Left as it was: clearing a file that had already completed sends a
second withdrawal.
Tests: both throwing cancels, the immediate cancel and retry, the
withdrawal on a cache clear, and no withdrawal while another reader
remains or after the room is lost.
When the connection refuses some senders of an outgoing flow, the flow
goes on with the others while a sender of its main kind is still live
(video for a screen, audio otherwise), and fails as a whole otherwise.
Three hand-written copies of this had drifted: a failed attach, a slot
that could not be rebound, and a refused local offer. They now call
rejectSenders, which fails an output only through failOutput.
What changes at each site:
- A refused offer that leaves no live picture marked the output failed
and reported it, but left its other senders attached and their tracks
in the flow's stream: a failed flow that kept sending. It now releases
every sender and empties the stream, once, like the other two paths.
The report is made as the flow fails, inside the pass over the flows,
as resync already does; its listener only writes a message.
- A failed attach and a failed rebind also removed the flow's other
senders that were not live. A sender is not live when its track has
ended, and also while its slot is still being rebound, which a
refused offer finds queued behind it. Nothing refused those senders,
so they stay with the owner that will finish or retire them, as the
offer path already had it. A companion that was being attached is no
longer dropped without a report because a different sender failed.
- The main kind is read from the source in all three; the offer path
read it from the carrier, which has the same kind.
Each site keeps what only it knows: an attach refuses the senders it
added in this attempt, a rebind its one slot, an offer the sender and
track pairs it carried that differ from the confirmed ones.
Two cases in a new transport test hold the offer path: no picture left
releases the established sound and reports once, and a live picture
keeps the senders the offer did not carry. The first fails before this
change.
A module only its own test imported (media copy accounting), five
exported definitions with no reader (a capture meter, a 2.x viewer
limit, a 2.x voice command shape, a voice snapshot shape, a check of
codec evidence with its helper), and 175 copy keys of the catalogue that
no source file names and no built prefix can make.
How it was established: the names and the keys were searched as whole
words across the product, the previews, the README fixture, the tests
and the scripts; the type check then proved the removal, since every
use of a copy key is typed against the English catalogue. Two keys the
catalogues use themselves for title labels were found that way and
stay. Keys reached only through a loosely typed lookup (the launcher's
failure reasons, the remote keyboard, tooltip labels) are built from a
prefix and were left alone.
The correction before this one reduced an unhandled error in the default
history to a fixed category, because a message is free text and can name a
media address. That left "Error" for every script failure, which tells a
person who is handed the report nothing about what broke.
The history now keeps two things that are not free text: the error's name
when it is one the language or the platform defines (TypeError,
NotAllowedError and the rest of the Web IDL table), and the path, line and
column of the frames that lie in the page's own scripts. A name of code's
own, the message, and frames of another origin are still left to the
developer's probes.
Keep configured ICE server identity and error codes in passive history while leaving free-form errors and local endpoint details to explicit developer probes. Omit raw device identifiers. Retain the established distinction between events and requested state samples.
A start used to end its list of offers with the page itself, so a page
nothing could be taken out of was started as original-page watching without
the sharer choosing it. The caller stopped asking for that, by passing no
page address, but the list kept the parameter and the branch, and a test
still held the old order with the page last. Both are gone: the list is the
media a start tries, and the original page is reached only by its own
choice.
Use existing player duration and browser codec support for automatic indexed-track previews, and retain explicit webpage selection. Give source-window notices their intrinsic height. Carry writer delivery separately from ordinary Core effects so expiry does not bypass its queue.
Keep channel time explicit, room binding transitions owned by their records, and shared limits checked against Core. Persist the actual changes before delivery, preserving expiry and the original requester on failure. Include the verified receiving-route, cache-clear, tooltip and native appearance corrections from this integration phase.
While a webpage watch plays in the App's separate window, the stage told
its sharer only that the video uses that window and where to adjust sound.
That window is the watch's source, and closing it ends the watch for the
room. The sharer's line now says so, in place of the sound note and at the
same length, so it fits where the earlier line fit at the narrowest width.
A viewer's line is unchanged: closing their own window ends it for them
alone.
Corrections from review of the always-on history.
A repeated measurement, and what a live owner says of itself for a report,
is recorded through debugSample: it is the state of the report being made
and does not enter the history, and outside a report it is kept only under
the developer's probes. The raw statistics sample, the playback, channel
and audio snapshots and the encoding pool's sample go that way. A track's
state beside each statistics sample was recorded as an event twice per
producer on every poll, with its settings; it is a sample now, and a
track's own events stay events. Making a report no longer adds to the
history it reads.
A candidate error keeps the server that refused and the code; the local
address and port are kept only for a developer.
The App's history starts where its service starts, which the desktop
binary and the Android runtime both enter; the Android entry never reached
the installation in the desktop binary.
A pair's facts are kept in the order their stages last happened, so a pair
that disconnected and connected again ends on connected.
Taking the time of a turn as an argument removed the room host's stored
clock, and with it the one thing that field was: the channel's clock as of
the authority's last input. Route deadlines are set in that clock. A peer
turn does not come through the authority, so finish_peer was given the
writer's own time, and a writer whose clock runs ahead could expire a live
preparation when a deleted message's attachment reconciled the projection.
The room host keeps that clock again, named for what it is, written by
dispatch alone. finish and finish_peer read it and take no time from their
caller, so a caller can no longer supply a different one; the WASM binding,
the stored room host and the tests follow. Channel's entries still take the
turn's time as an argument.
Confirming a preview pauses it so that the room starts from a known
point. A file was then started and an embed was not, so a person who had
pressed start saw a paused YouTube or PeerTube player and pressed play
again. An embed takes no command before its stage shows it and lets it
play, which is why the start could not sit where the file's does.
WatchPlayer.start plays as soon as the media may: at once when nothing
restricts it, otherwise on the media's own report that playback became
available, and never after the player closed. The committed embed is
started with it once its presentation is mounted. A refusal by the
browser is still shown by the player, as before.
With history always recorded, every statistics sample its owner takes went
into one shared ring: a raw WebRTC sample per connection per poll and an
encoding pool sample twice a second. At that rate the 8 MiB ring held about
two minutes, so the rare events that explain a failure, such as how a
connection's candidate pairs ended, were gone before anyone could export
them, and each sample paid for sanitizing a whole statistics report.
The history now keeps each kind of event apart: a kind keeps its newest 512,
and over the 8 MiB budget the kind that holds the most gives up its oldest.
The total count bound is gone, since the two bounds that remain already limit
it. A repeated measurement is recorded where it belongs: under the
developer's flag, or while a report is being made, where it is the report's
state. From each statistics sample the history keeps the connection's path
when it changes: how its candidate pairs stand and which one carries it.
The encoding pool's periodic sample is a developer's probe again.
The Core wrote several limits as bare literals, some of them twice: the voice
bitrate default and send range, the relay capacity default, member, room and
title name lengths, short keys, IDs, attachment names, message and reply text,
watch URLs and rate, signal SDP and candidates, and room passwords. Each is now
one named const in the Core module that validates it, and the production Rust
copies, Native's screen source title among them, refer to it. Boundary tests
keep their own literals.
TypeScript held its copies in protocol.ts, shared/protocol.ts,
relay-capacity.ts, room-interactions.ts and remote-control/protocol.ts. They
move to src/shared/core-limits.ts and the callers import from there.
channel_wire_limits now emits every limit under its TypeScript name, so the
parity test compares the whole module with the compiled Core. protocol.ts and
relay-capacity.ts re-export only the names that session.ts and
ChannelShareControl.tsx still import, because those files are held elsewhere.
No value changes.
A person had to turn recording on before a problem for its report to say
what led up to it, and nobody does that before a problem. Recording is
now passive and always on: the page and the App keep a bounded history in
memory (8,192 events or 8 MiB), and a report is exported on demand. There
is no recording switch for a person any more.
The page's diagnostic control is one button that downloads the report, and
the App launcher's is one button that downloads the App report. The
launcher state no longer carries a debug field, the route that enabled App
recording is gone, and the App no longer adds a debug flag to the pages it
opens. The App installs its recorder at its start, before anything can
log; the Server binary does not, so it is unchanged. Every guard that kept
an event from being recorded is removed, and audio capture and capture
frame counters always count.
What stays off by default is the work that costs something of its own:
the page's per-frame gap loop and console echo, which `?debug=1` starts,
and the App's window-loop lateness probe and shutdown progress lines,
which `PIIK_DIAGNOSTIC_PROBES=1` starts. Reports say whether probes ran
instead of whether recording was on. The copy describes the report in all
five languages, and keys and the visual kind that lost their last user are
removed.
Tests now assert that history is recorded with nothing switched on, that
the probes run only with the developer's flag, and keep every assertion on
bounds, secret filtering and report contents.
The App refused a report unless recording had been switched on before
the problem, in every new process. So the one report that would say
which path a connection took, and how its preparation ended, was the
one nobody had.
The recorder now keeps, for each pair this process has known, the last
fact of each stage: whether a preparation ran, what the two mappings
were read as, how it ended, its check counts, which path was selected,
how the pair closed. These are the reviewed values the history already
used, with no address, port or identifier; the newest 256 pairs are
kept and nothing is formatted or hashed until a report is made. A
report writes them as `connections.json`, each pair under the alias
both sides share, beside the build and the history.
The export answers whether or not history is recorded, from the
launcher and from the terminal. The launcher shows the report and the
switch side by side. Recording the history stays the person's choice.
Getting a report out of a person was close to impossible. The page read
its switch once, from the address, so starting diagnostics reloaded the
page and ended the share or the watch that had the problem; and without
the switch nothing could be exported at all, since the owners of live
state registered their snapshots only when it was on. A problem is
noticed after it happens.
A report now holds the state at the moment it is made: every live
connection, playback and input says how it stands when the report is
asked for, whether or not the page records. It can be downloaded at any
time. Recording what happens next stays the person's choice, as the
media-status standard requires, and the shared control switches it on
and off at once; `?debug=1` still chooses it at load. What was recorded
stays in the page after recording stops.
The observer of a connection never interrupts the connection it
observes, which the earlier early return had hidden.
Channel and RoomAuthority each kept a stored clock: Channel.now was written
by some Authority entries and read later by reconciliation, host input,
forwarding and host sync, and RoomAuthority.now kept the last dispatch's
time for the later finish and finish_peer calls. Entries that did not write
it judged repair and admission deadlines against an older turn's clock, and
nothing in the types showed which ones.
Both fields are gone. Channel::reconcile, reconcile_transports, host_input,
forward_room, sync_hosts, register_host, stop_host, accept_host,
unsupported_host_input and remove_room take now, and every Authority entry
that reaches them passes its own, including set_service_endpoint and
failed_room_delete, which now take it explicitly. RoomHost::finish and
finish_peer take now: StoredRoomHost passes the dispatched input's time and
its peer turn's time, the Browser binding and its room host pass the same,
and the Server passes its own clock. Tests that assigned the stored clock
pass the argument instead. RequestContext.now, HostInput.now and the wire
are unchanged.
Show unassociated webpage resources in the existing source dialog before
publishing the same prepared media. Keep preview cancellation and promotion
with the source-selection owner, including canonical embedded-player URLs.
Rejoin the shared position when a viewer resumes after buffering. Retire the
issued seek on playback progress so a later independent stall can recover.
Verified the source dialog, media handoff and cancellation in Chrome, both
TypeScript projects, documentation, and the full 2654-test Web suite.
The owner's decision: a room does not wait for a viewer who stalls.
Everyone follows the sharer, and a player that plays again goes to where
the room now is, by itself.
Until now a look moved a viewer only inside its known buffer. A viewer
behind by more than its buffer, and every embedded player, stayed behind
until the sharer acted or the person pressed Sync. A player that stood
still while the room played now rejoins the shared position at the look
that finds it playing again, in its buffer or not.
The move may cost a wait of its own. That wait is not a stall to rejoin
from, so one stall costs one move and no chase follows; a later stall is
rejoined from again. A viewer who moved their player by hand is left
with the Sync action as before, and the action is still offered when a
move did not land.