Skip to content

URI on webOS 25: admit firmware major 10 to the exported-window table - #1377

Merged
GLinnik21 merged 4 commits into
mainfrom
uri5/admit-webos10
Nov 14, 2026
Merged

GLinnik21 merged 4 commits into
mainfrom
uri5/admit-webos10

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

URI on webOS 25: admit firmware major 10 to the exported-window table

What changes for a viewer

EXPORTED_STRATA (rust-modules/play-uri/src/backend.rs) listed major 5 only. It now lists major 10 too. On a set whose
firmware reports major 10 (an LG C2 on webOS 25, firmware 33.31.68, is the one set that has run), a viewer who chose Experimental,
for a direct play of an original file that the existing route accepts (a single audio track, no subtitle stream of any kind,
quality Original, or Auto on a local link, and a file Standard itself would direct-play), now plays through the TV's own media
pipeline in the exported window, with this app's player screen and controls on top. The boot line on such a set reads
uri: product binding=Exported { canvas: (1920, 1080) } mode=2 ... major=10 evidence=table.

Everything else is as before: Standard remains the default and the handoff target on any failure; originals with several audio
tracks, subtitles, a server-side conversion, a relay link or a non-1x speed still play in Standard; every other webOS 5+ major
(6 to 9, 11 and later) still plays Standard (major=<n> evidence=none); a 4.x set keeps its ACB path and a 5.x set keeps the
entry #1331 gave it.

Evidence (all three parts of docs/uri-mode.md's admission rule; the webOS 9.2.4 / 10.3.1 (33.31.68) Results row quotes the lines)

One tester, one LG C2 (firmware 33.31.68, stated here),
five comments in #1064: the drive probe, the
first product run, the
Dolby Vision product run,
a DTS file and the
wider-than-16:9 product run of 2026-11-14.

  • (a) Decompile: the 10.3 image reads option.windowId at load. This was already in docs/uri-mode.md ("What the 5+ firmware
    actually does with the load": parseLoadMessage "identical on 5.5, 5.6, 6.5, 7.6, 9.2, 10.3, 11.2"); I re-derived nothing.

  • (b) The PRODUCT run of 2026-11-14, on a debug build the tester does not name. It answers the maintainer's request of 2026-11-13 for the
    CI build of run 43421880266 (main at 2d565dc9f, URI on webOS 5: admit firmware major 5 to the exported-window table #1331's merge; I checked
    gh run view 43421880266 --json headSha) with the override armed, Playback engine Experimental, quality Original and an original wider
    than 16:9 with one audio track and no subtitles. It opens: "Everything was successful again: aspect ratio correct, picture is full width with
    black bars, audio is playing, pause, resume, seek working." Its paste of the event log's grep -E 'uri(probe)?: |ls2uri: ':

    • boot uri: product binding=Exported { canvas: (1920, 1080) } mode=2 evidence=override; uri: original declined (a trailer preview);
      ls2uri: register shape=named ok after 2ms;
    • uri: exported window placed src=1920x1080 rv=1, then uri: exported window placed src=3840x1608 rv=1 (3840x1608 is 2.39:1);
    • uri: audio index=0 is already selected (audioInfo); no selectTrack sent; uri: service playing;
    • two uri: control Seek(...) landed on the service's seekDone (its reply acknowledged first: yes), ContentTime(54901) and
      ContentTime(130201); ls2uri: released.

    This run meets rule (b): the override boot line, a picture placed from a 2.39:1 source and "full width with black bars" in the tester's
    words, sound, and controls. Pause and resume rest on the tester's words alone: the paste has no pause line, and the backend logs none for
    the service's paused event (only playing logs uri: service playing). The paste has no uri: product binding=Unbound ... major=10 evidence=none line before the override line, which the earlier Dolby Vision paste had, so no line of this paste names the firmware
    major; I attribute it to the C2 because it is the same tester's answer, in the thread, to a request about this set. I do not explain the
    missing line: the composition code at 2d565dc9f logs that line at every composition, so the code does not account for its absence, and
    the tester names no build.

    • Two earlier product runs on the same set support it and are not relied on. The first, on 2026-11-11 (a reply to the request for the
      debug build of main at 68527cb2, which carries URI: guard reordered audio tracks and recognize silent pause clocks #1314; it pastes no lines and names no build): "I can confirm that everything worked:
      picture size/aspect, spinner clears, remaining time counts down, pause/ resume and seek also working." The second, on 2026-11-12, a
      16:9 Dolby Vision MKV with one audio track and no subtitles: "also successful", "Audio plays, pause, resume and seek works"; its paste
      has the override line, uri: exported window placed src=3840x2160 rv=1 and seeks at ContentTime(31724) and ContentTime(87765),
      after uri: product binding=Unbound mode=2 handle=false ptype=10 initialized=false major=10 evidence=none (the line from before this entry).
  • (c) The drive probe, on an older build with the earlier grader (its armed line carries no fw= and its summary no resume_from= token, so the firmware it ran on rests on the tester's statement above), printed
    load=ok playing=yes ... currentTime_advanced=yes ... window=exported ... shape=named end=script pause=unconfirmed ... resume=sent seek=hit seek_delta=-742 ... audio=ok ... pause_basis=reported_positions pause_samples=0 ... paused_event=yes.
    Its lines: drive pause pos=2410, ev=paused at t=4701, no currentTime until after drive resume pos=2410, then
    ev=currentTime value=2729; drive seek target=24937, ev=seekDone, first currentTime after it 24195;
    drive selectTrack type=audio index=1, ev=trackSelected type=audio index=1. The tester's report on that run also said the
    video "shows ‘connecting…’ and the buffering icon all the time" and the remaining time "only shows -0:00"; the first product run
    (2026-11-11) reports the spinner clearing and the remaining time counting down.

  • Extra datapoint, not part of the rule: the tester also played a file with a DTS audio track (direct play; the C2 uses
    dts_restore_plus), and Diagnostics read Audio dca -> unknown. The Diagnostics codec row's third stage is what we declared to
    Starfish, and it reads unknown for a play on the URI backend (feed_attempt in rust-modules/src/app/diagnostics.rs on main today;
    the report names no build), which is expected on a URI play.

Amendment (1) is used

Rule (c) wants the probe to print pause=froze. This probe printed pause=unconfirmed: with pause_samples=0 the grader had no
position to compare, because the service sends none while paused. Amendment (1), added by #1331 and unused by the 5.6.2 row, lets
the current grader's verdict on the run's recorded numbers, replayed in a unit test, stand in for the printed pause=froze; the row
names the test and says the run itself printed pause=unconfirmed. The test is
uri_drive_webos_25_c2_run_replays_to_pause_froze_from_the_paused_event_and_resume (rust-modules/play-uri/src/uriprobe.rs): a pause
at 2410, a paused event inside the dwell, no samples, 2729 as the first position after the resume. It passes against the current
grader (pause=froze on pause_basis=paused_event_and_resume, resume_from=2729), and it fails when the grader's 1000 ms bound is
loosened (I tried 1100: it failed at the resume of 3411). It also pins that resumes of 3411 and 1409, one millisecond outside the
bound, confirm nothing. The verdict is the test's, not a printed one, and the row says so. This older summary prints no
resume_from= token, so rule (c)'s resume comparison is read from the log: 2729 is 319 ms past the paused 2410. Amendment (2) is not
used: no control failed.

Major 10 covers every 10.x release; major 9 is not admitted

An entry is a firmware major, so this admits every 10.x release on one set's evidence (10.3.1, 33.31.68); no other 10.x minor has a
run. The 9.2.4 image is in the same row and shows the same mechanism, but there is no run on a 9.x set and major 8 is not admitted, so
the bracketed exception does not apply: major 9 stays Standard. docs/webos10-lab-report.md records a 10.x set booked as webOS 24, so
the docs and this PR key on "firmware major 10", and name the tester's set as an LG C2 reported as webOS 25.

What stays untested

  • Subtitles on the URI path (the route keeps any file with a subtitle stream in Standard; "Subtitles worked" on the C2's probe is the
    firmware's, a report, not a product run).
  • HLS (the route sends a converted stream to Standard; no product run of an HLS URI play on major 10 exists).
  • Audio-track switching on the URI path (a multi-audio original goes to Standard; the probe's trackSelected is not that).
  • Other 10.x minors, and majors 6 to 9 and 11.
  • End of stream (no tester report mentions reaching it, and the backend logs no line for it, so a paste could not show one).
  • A build carrying this table entry (evidence=table) on a 10.x set: the two product runs that pasted a log used the override (evidence=override), and the first pasted none.

Changes

  • rust-modules/play-uri/src/backend.rs: EXPORTED_STRATA = &[5, 10], the 10 entry commented like the 5 entry (its Results row, the
    three parts, amendment (1) and the replay test's name; its (b) clause names the 2026-11-14 run); the table's doc comment says it admits
    majors 5 and 10.

  • rust-modules/play-uri/src/uriprobe.rs: the replay test above (a test only; the grader is unchanged).

  • rust-modules/src/app/adapters/backends.rs: the composition test pins majors 5 and 10 to Exported { canvas: EXPORTED_CANVAS }
    on VP_EXPORTED and every other major 0..=30 to Unbound (red first: it failed with major 10 left: Unbound right: Exported
    against &[5]), both admitted majors bind nothing on VP_ACB and VP_NONE; the boot-line test pins major=10 evidence=table
    beside major=5.

  • docs/uri-mode.md: the webOS 9.2.4 / 10.3.1 (33.31.68) Results row (replacing "no major 10 entry"; rule (b) rests on the
    2026-11-14 run, the two earlier product runs are supporting runs; the 9.2.4 image fact and "major 9 is not admitted" stay), the admission paragraph (majors 5 and 10; the amendment (1) note says the 10.x row uses it), the
    line that said the table admits major 5 and the override paragraph's evidence=table example. docs/playback-settings.md: which
    majors reach the TV's pipeline. The "webOS 5+ tester run" section is untouched.

  • Not touched: media/src/route/*, uri_preflight.rs, any other Results row. run_uri_boot_tests.rs needed no change (its prose
    describes a host with no firmware major, still true).

  • Main merged in: I merged origin/main (e6200fece) into the branch as a merge commit (7fbae731a). One conflict, in
    rust-modules/src/app/adapters/backends.rs: ACB: create the URI engine's handle at the first Experimental offer, not at boot #1396 (the URI engine's ACB handle on demand) dropped the plane-owner parameter from
    uri_product_binding and the booted owner from the composition tests. I kept ACB: create the URI engine's handle at the first Experimental offer, not at boot #1396's signature, boot line (handle=deferred ptype=0 on
    ACB) and tests, and wrote this branch's major-10 assertions against them (majors 5 and 10 bind Exported, every other major 0..=30 is
    Unbound, both admitted majors bind nothing on VP_ACB and VP_NONE, the boot-line test pins major=5 and major=10 evidence=table).
    No behaviour changed.

Verification

I used no television; the device evidence above is the tester's. Host gates on the committed tree:

  • Red first (before the main merge): make test-crate C=app T=backends against &[5] with the tests edited: test result: FAILED. 8 passed; 2 failed; 0 ignored; 0 measured; 1365 filtered out; finished in 0.00s (major 10 left: Unbound right: Exported { canvas: (1920, 1080) }, and the boot-line test on major=10). The replay test is a replay, not a behaviour change, so it passes before any change: test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 240 filtered out; finished in 0.00s; with the grader's bound loosened to 1100 it fails (resume at 3411).
  • On the committed tree after the merge and the doc commit (320a3b09e), git status --short empty before and after:

CI runs the full suite.

Part of the webOS 5+ URI work tracked in #1064; does not close it.

🤖 Generated with Claude Code

GLinnik21 and others added 2 commits November 13, 2026 15:19
`EXPORTED_STRATA` (`play-uri/src/backend.rs`) now lists firmware major 10 beside 5. On a set
reporting major 10 (an LG C2 on webOS 25, firmware 33.31.68, is the one that has run), a viewer who
chose Experimental plays an original the route accepts through the TV's own media pipeline in the
exported window; the boot line reads `... major=10 evidence=table`. Major 9 and every other major
still play Standard.

The evidence is in the `webOS 9.2.4 / 10.3.1 (33.31.68)` Results row of `docs/uri-mode.md` (#1064):
(a) the 10.3 image reads `option.windowId` at load; (b) two product runs with the override armed,
picture size and aspect from the first, sound from the second; (c) a drive probe on an older build
that printed `pause=unconfirmed` and is graded under amendment (1) by the replay test
`uri_drive_webos_25_c2_run_replays_to_pause_froze_from_the_paused_event_and_resume`.

The composition test pins majors 5 and 10 to `Exported` and every other major 0..=30 to `Unbound`;
the boot-line test pins `major=10 evidence=table`.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The first webOS 25 product run pasted no lines, so only the second run's log shows
`evidence=override`; the row and the entry comment now say rule (b)'s boot line comes from the
second run and that the first run's picture and aspect are unlogged words. The second comment's
"was also successful" is quoted. The DTS datapoint reads "expected on a URI play" (its build is not
named) instead of concluding it from today's Diagnostics code.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GLinnik21 and others added 2 commits November 15, 2026 01:36
One conflict, rust-modules/src/app/adapters/backends.rs. Main's #1396 made the URI engine's ACB
handle on-demand: uri_product_binding no longer takes the plane owner, and the composition tests
stopped building a booted owner. This branch's major-10 composition assertions are kept, written
against that new signature: majors 5 and 10 bind Exported on VP_EXPORTED, every other major 0..=30
is Unbound, and the boot line pins major=5 and major=10 evidence=table. No behaviour changes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…16:9 product run

The tester's run on a 2.39:1 original (override armed, Experimental, Original, one audio track, no
subtitles) is the product run that meets rule (b) for major 10: the override boot line, a placement
from src=3840x1608, "full width with black bars", sound, and two seeks logged on seekDone. Pause and
resume rest on the tester's words (the paste has no pause line, and the backend logs none for a
paused event). The paste has no `binding=Unbound ... major=10` line, so none of its lines names the
firmware major; the row says so rather than explaining it. The two earlier product runs stay as
supporting runs and their "rests on an unlogged run" caveats are dropped. The EXPORTED_STRATA
entry's comment and the prose describing the product runs say the same.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 marked this pull request as ready for review November 14, 2026 22:46
@GLinnik21
GLinnik21 merged commit 9f6ac66 into main Nov 14, 2026
19 checks passed
@GLinnik21
GLinnik21 deleted the uri5/admit-webos10 branch November 14, 2026 22:57
GLinnik21 added a commit that referenced this pull request Nov 14, 2026
…er run (#1397)

EXPORTED_STRATA is now &[5, 6, 7, 9, 10]. On a set whose firmware reports major 6, 7 or 9, a viewer on the Experimental engine now plays a qualifying original through the TV's own pipeline in the exported window. A qualifying original is a direct play with one audio track and no subtitle stream, on quality Original or on Auto over a local link. The boot line reads `evidence=table`. No tester has run these majors.

They are admitted under the bracketing exception, which now reads "nearest admitted major on each side" (the maintainer's decision of 2026-11-13). A major with image evidence (a) but no tester run is admitted when the nearest majors below and above it were both admitted on tester evidence; a major admitted only as bracketed is skipped when looking for a side. Here those sides are 5 (#1331) and 10 (#1377). The old text required both major - 1 and major + 1.

(a) per major: libplayerAPIs.so.1.0.0, StarfishMediaAPIs::parseLoadMessage, reads option.windowId at load:
- 6.5.3, HE_DTV_W21O, sha 0b0f6654, at 0x41556;
- 7.6.0, HE_DTV_W22P, sha 0969903e, at 0x467c6;
- 9.2.4, HE_DTV_W24G, sha cc08e2b8, at 0x4385c.
A virtual call follows the store on each image; the AVProxy builder is identified on 11.2 only. Major 8 has no image read, so it has no (a) and plays Standard.

docs/uri-mode.md gains Results rows for 6.x and 7.x, rewrites the major-9 part of the 9.2.4 / 10.3.1 row, and corrects the windowId store offset: +0x90 on 6.5.3 and 7.6.0, +0x94 on 9.2.4 and 10.3.1. Host tests (red first against &[5, 10]) pin 5, 6, 7, 9 and 10 to Exported on the exported-window display, every other major 0..=30 (8 included) to Unbound, and the boot lines, including `major=8 evidence=none`.

Part of the webOS 5+ URI work tracked in #1064; does not close it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant