Repository navigation
URI probe: the summary answers the drive gate, and a webOS 5+ tester protocol - #1304
Merged
Merged
Conversation
…protocol (#1064) One `drive` run on a 5+ set should decide the controls without anyone reading raw `ev=` lines. The probe's summary gains `seekdone=` (a seekDone after the script's Seek call), `resume_from=` (the first position the service reported after Resume), `audio_at_load=` (the track an audioInfo named by loadCompleted), `text_ev=` (a typed text trackSelected after the text selectTrack) and `clock_period_ms=` (the median gap between currentTime reports). The `armed` line gains `fw=` and `build=`, read from `tv::device::info()` by the application's driver (`dev::uriprobe`) and handed to the machine, which reads no global and prints only plain version text. docs/uri-mode.md gains the "webOS 5+ tester run" section: arming the per-Play trigger on a plain, a jailed (/proc) and a persistent-jail /tmp, copying the log while the app runs, and what every summary token reads as. The 11.x row now says the set is on 11.1.0-3701 and the mechanism was read on the 11.2.0 image; the 5.4.2 row says placement and aspect were not reported. No production change: the probe is a devtriggers build's. Part of the webOS 5+ URI work tracked in #1064; does not close it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…knows resume=sent is set when the Resume call is pushed, before any reply, so it reads "sent and not refused"; seek=none also covers a Seek that was sent but never answered; audio=ok is also confirmed by an audioInfo naming the index, in either order with the acknowledgement. Part of the webOS 5+ URI work tracked in #1064; does not close it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One
driverun of the URI probe on a webOS 5+ set should decide the controls gate (pause, resume, seek, audio) without anyone reading rawev=lines, and a tester should have one written protocol to arm the probe and copy its log on a set whose/tmpis jailed. This PR adds the missing summary fields, names the firmware on thearmedline, and writes the protocol. It changes no production behaviour: the probe is adevtriggersbuild's.Part of the webOS 5+ URI work tracked in #1064; does not close it.
What changed
rust-modules/play-uri/src/uriprobe.rs(the machine, still Sans-IO: no clock, no file, no global):summaryline gainsaudio_at_load=<n|none>andclock_period_ms=<ms|->(every variant), and, on adriverun,seekdone=yes|no,resume_from=<ms|->andtext_ev=yes|no;armedline gainsfw=<release|->andbuild=<build|->, from a newFirmwarevalue onConfig. Only plain version text is printed (letters, digits,.-_+, at most 32 characters); anything else, or nothing, prints-.rust-modules/play-uri/src/uriprobe_drive.rs:DriverConfigcarries theFirmwarethrough toConfig.rust-modules/src/dev/uriprobe.rs: the application's side readsplx_platform::tv::device::info()at the IO boundary (Launch::open) and hands it in.docs/uri-mode.md: a "webOS 5+ tester run" section (arming the per-Play trigger on a plain/tmp, through/proc/<pid>/root, and at a persistent/var/palm/jail/<jail>/tmp/<app id>/path; copying the log while the app runs; every summary token and what each value reads as). The 11.x results row now says "set on 11.1.0-3701, mechanism read on the 11.2.0 image", and the 5.4.2 row says placement and aspect were not reported.rust-modules/play-uri/src/uriprobe_acb_transcript.txt: the recorded ACB effect stream, regenerated for the new tokens (only thearmedandsummarylines moved).New line formats:
Verification
Test first: the new and changed tests were written against the old machine and failed (20 failed, 211 passed in
plx_play_uri) for the right reasons: each new token absent from the line, thearmedline withoutfw=/build=, and the exact-string summary and armed tests. They cover each new field, including a resume that restarts at 0 (resume_from=333after a pause at 5000), a seek that lands with noseekDone(seek=hit ... seekdone=no), aseekDonefrom before the Seek call (not counted), anaudioInfobefore, with and afterloadCompleted, an untyped, audio-typed or earliertrackSelected(nottext_ev), the median gap (odd, even and fewer than two reports), and firmware text that is empty, odd, too long or carries a URL and token.On the committed tree (
git status --shortempty before and after):Not verified on a TV
All 5+ behaviour: that the fields read as described against
com.webos.mediaon a real 5+ firmware, the jail routes in the new docs section (whether the/var/palm/jail/<jail>/tmp/<app id>/directory exists before the first launch or survives an exit is explicitly marked unestablished there), and thefw=/build=text the boot probe reads on a 5+ set. Those come from tester runs; the development TV is a webOS 4.5 set and was not used.🤖 Generated with Claude Code