Skip to content

URI: log the service's hdrType on videoInfo - #1398

Merged
GLinnik21 merged 2 commits into
plxnative:mainfrom
tiper:uri-log-hdr-type
Nov 17, 2026
Merged

GLinnik21 merged 2 commits into
plxnative:mainfrom
tiper:uri-log-hdr-type

Conversation

@tiper

@tiper tiper commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

The videoInfo diagnostic listed an hdr key that the media service does not send; it reports the decoded stream's HDR kind as hdrType ("none", "HDR10", "HLG" on the sets read so far). Show that word, so a URI play's trace says whether the TV's pipeline took the stream as Dolby Vision, HDR10 or SDR. Only a short word of ASCII letters, digits and underscores is repeated, so no host or URL reaches the log.

The videoInfo diagnostic listed an `hdr` key that the media service
does not send; it reports the decoded stream's HDR kind as `hdrType`
("none", "HDR10", "HLG" on the sets read so far). Show that word, so a
URI play's trace says whether the TV's pipeline took the stream as
Dolby Vision, HDR10 or SDR. Only a short word of ASCII letters, digits
and underscores is repeated, so no host or URL reaches the log.

Signed-off-by: Tiago Pereira <[email protected]>
@fraygox

fraygox commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Reviewed against current main (8e8330ab0) — nothing blocking, and the change does what it says. Two small things, the first of which I'd suggest fixing before merge:

  1. hdr_type could be a closed list instead of a character filter. parse_event documents itself as a whitelist where "a value it does not know is never read", and every other string field here (scalar's codec words, trackSelected's audio/text) matches a fixed vocabulary. A ≤16-character alphanumeric filter does keep hosts and URLs out, but it would also pass a short bare token — the probe's own hostile-event leak string SECRETTOKEN123 would get through if it arrived in hdrType. The full table is already recorded in docs/measurements/uri-acb-envelope-2026-11-05.md (getHdrTypeString: none, HDR10, DolbyVision, VP9, HLG, Prime, "the same table LS2 uses"), so matching those six words keeps the guarantee and loses nothing. With that, the call site can be details_by(value, &["hdrType"], hdr_type) rather than joining the text by hand, and adding hdrType to hostile_event() in uriprobe.rs would pin it.
  2. The doc comment says the Dolby Vision spelling "is not known yet". It's DolbyVision — in the table above, and in captures in docs/webos10-lab-report.md. Worth updating the comment and the PR body, and a "hdrType":"DolbyVision" test case would cover the case the PR is really for.

Minor and optional: hdr is still in the key list although the body says the service never sends it.

Checked and fine: nothing in tests/run.py or the harness depends on the videoInfo line's shape, and no pinned transcript carries hdrType, so no existing expectation moves.

The videoInfo line now admits only the six words getHdrTypeString can
send (none, HDR10, DolbyVision, VP9, HLG, Prime), through the same
closed vocabulary as the codec words, instead of any short token. The
hdr key the service never sends is no longer read.

Signed-off-by: Tiago Pereira <[email protected]>

@GLinnik21 GLinnik21 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@GLinnik21
GLinnik21 merged commit 967dbe6 into plxnative:main Nov 17, 2026
13 checks passed
@tiper
tiper deleted the uri-log-hdr-type branch November 21, 2026 19:21
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.

3 participants