Repository navigation
URI: say in the event log why the Experimental engine did not take a play - #1332
Merged
Merged
Conversation
A tester on webOS 5.6.2 turned on Playback engine > Experimental and every play went to Standard with nothing in the event log saying why (quality Auto on a link the app reads as remote). The URI qualification now returns a typed reason instead of a bare Unknown/Refused: `UriDecline`, one variant per refusal in the plan's guards, `ResolvePort::qualify` and `ProductQualifier`, with a `log_name()` phrase a tester can act on. `Verdict::Unknown` and `Refused` carry it; every branch keeps its kind, and the certificate checks after a qualifier's Known are split into "does not match this play" and "no display-path evidence". The plan records the reason (`Plan::uri_decline`, beside `pms_decline`), including the guards that skip qualification, and `build_stream` writes one line per resolve, `uri: original declined (<reason>)`, only for a viewer on Experimental whose plan carries no URI original. No new effect, worker or global. Part of the webOS 5+ URI work tracked in #1064; does not close it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The production qualifier answers Unknown(NotOptedIn) for a request that did not opt in, which is what this test's unarmed port asked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and docs say what is true Review of #1332: - A selected embedded subtitle the certificate does not carry (no native track for it, or no certified render) is now `SubtitleNotCarried` ("subtitle streams keep a play in Standard today; try a file without subtitle streams"), judged after the rest of the certificate and before the display path. It was `CertificateMismatch`, which told a tester to report a designed refusal. The certificate check is the same boolean as before, split into two groups that only name which failed; routing is unchanged (still Unknown). The docs' subtitle rows now say a file with subtitle streams stays in Standard today and the remedy is a file without them; the no-subtitle-selected phrase says so too. - `QualityOrDirectPlay` names the Direct Play setting in its remedy; `NoPort` says "build or boot" (a refused URI driver install leaves no port either). - docs/uri-mode.md: the plan guards run first, so their rows come first; a play that fails over from the URI engine logs the `already tried` line on its handoff; the firmware remedy points at the product boot line and the `devcaps: firmware= build=` line, not the probe's `armed` line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…le ends with 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.
Why a play stayed in Standard, in one event-log line
A tester on webOS 5.6.2 turned on Settings > Playback engine > Experimental and every play went to Standard
with nothing in the event log saying why. The reason was quality Auto on a link the app reads as remote (Auto
streams adaptively unless the link is known to be local). He tried three titles before reading the code. Other
refusals were as silent: a file with subtitle streams and none selected, several audio tracks on the exported
window, a file Standard itself would not direct-play.
What a tester sees now
For a viewer whose Playback engine is Experimental, each play that did not take the URI engine writes one line
to the event log, once per resolve:
for example
uri: original declined (quality Auto on a link that is not local; set quality to Original).Standard viewers get no line, a play the URI engine took gets none, and the line names no title, host, URL or
token. The reason is the first check that said no.
How
uri_preflight::UriDeclineis a typed reason, one variant per distinct refusal in the plan's guards,ResolvePort::qualifyandProductQualifier, withlog_name().Verdict::UnknownandVerdict::Refusedcarry it. Every branch keeps its kind (Refused stays Refused, Unknown stays Unknown); the refusal chain is
the same checks in the same order, now one function that names the first one that fires.
uri_preflight.rsstays pure: nothing logs there.
does not match the play (selection, source, Dolby Vision record, audio track map, expiry) is
CertificateMismatch;a selected embedded subtitle the certificate does not carry (no native track for it, or no certified render) is
SubtitleNotCarried(the product carrier certifies no subtitle render, so today every selected embedded subtitleends here, by design: any file with a subtitle stream stays in Standard); one that matches but has no display path
to show it is
NoDisplayEvidence. The routing is the same boolean as before; the split only names the group. Standard's four verdicts are named separately (video, DolbyVision, audio, container) through
StandardDirectPlay::first_gap.Plan::uri_declinerecords the reason besidepms_decline, including the guards that skip qualification(no URI port, the backend policy no longer offers a URI original, an audio or subtitle pick the Part does not
list).
build_streamwrites the line once, after the plan is chosen, throughuri_decline_line(pure), so aplay that tries a first Part for URI and then the default Part logs once. No new effect, worker or global; the
ci/allowledgers are unchanged.docs/uri-mode.mdhas a "Why a play stayed in Standard" section with each reason, what it means and whatthe tester changes;
docs/playback-settings.mdsays the event log names the reason.Reasons
In the order the code checks them: no URI engine in this build or boot; the URI original was already tried or is
not offered for this play (a play that fails over from the URI engine logs this on its handoff to Standard); the
picked audio or subtitle track is not in this file; playback speed is not 1x; the quality ceiling or Direct Play
setting rules out the original (set quality to Original and Direct Play to Auto); the link is a Plex relay; quality
Auto on a link that is not local; an audio enhancement is on; a subtitle is burned in; the selected subtitle is an
external file; the file has subtitle streams and none is selected (subtitle streams keep a play in Standard
today); the file has Dolby Vision and the Dolby Vision setting is Off; a trailer preview; no duration or URL for the
file; Playback engine is not Experimental; Standard would not direct-play the video / Dolby Vision / audio /
container; several audio tracks on the exported window; the certified source did not match this play; subtitle
streams keep a play in Standard today, try a file without subtitle streams; no exported-window evidence for this
firmware (report the
uri: product binding=...boot line and thedevcaps: firmware= build=line); the qualifierdid not certify the file.
Tests
Written first against a stub that answered every branch with one placeholder reason: 8
uri_preflighttestsand the plan-level test failed on the reason, then passed with the real ones.
uri_preflight: a table overResolvePort::qualify(every refusal, the Unknowns, and that the first failingcheck names the reason), the post-Known split (expired or unmapped certificate vs. no display path), a
qualifier's own reason passing through,
ProductQualifier(not opted in, each Standard verdict, several audiotracks only on the exported window),
first_gaporder, and that every reason has its own one-line phrase withno parenthesis. The existing
matches!(.., Verdict::Unknown)sites now pin the reason they were already about.decision_resolve_route_tests): an opted-in Auto play on a remote link recordsAutoOnNonLocalLinkand the exact log line, Standard gets none; the three guards leave their reasons; aqualified play leaves none.
The subtitle reason is pinned for the product qualifier, for a certificate with no render proof and one with the
wrong codec, and for its order against an expired certificate and a missing display path.
make test-crate C=plx_media T=uri_preflight,T=route,make test-crate C=app T=uri_product,make check-nodef,ci/check-deps.sh,ci/check-module-layers.py.Not covered on a device: it is a host-side log line; the reasons are as accurate as the checks they name.
Part of the webOS 5+ URI work tracked in #1064; does not close it.
🤖 Generated with Claude Code