Repository navigation
Preview: a refused trailer's report names which condition refused it - #1373
Merged
Merged
Conversation
A detail-page trailer preview takes only a plain direct play, and a refusal
reached Sentry as `preview_not_direct` (PLX-NATIVE-23; `unspecified` on 0.9.0,
PLX-NATIVE-1G) without saying which condition failed. The refusal now carries
a typed reason, `PlayVerdict::PreviewNeedsDirectPlay { reason }`, and the
report adds it as the closed tag `playback.preview_refusal`, only on the
`preview_not_direct` kind. The fingerprint is unchanged.
`PreviewRefusal` is `no_part`, `not_direct` or `adaptive`, the first failing
condition in that order (`player::preview::refusal`). `not_direct` is judged on
the direct-play answer taken before Auto quality's override: Auto sets
`directplay` false whenever it picks HLS, so reading the reason off the gate's
own inputs would call every Auto refusal `adaptive`, including a preview the
server would have transcoded anyway. That is what keeps `adaptive`, the
suspected Auto-bandwidth-probe cause, a falsifiable answer.
PRIVACY.md lists the tag and its three values; the consent screen's legend is
left as it was.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`adaptive` is a direct play on offer that Auto did not keep (a slow probe, an inconclusive probe, an unclassified link), not only a bandwidth finding, and an enhancement's late remux falls through to `not_direct`. Doc comment only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ery failure kind The consent screen shows every field a handled report can carry, and the new `playback.preview_refusal` tag appeared in neither the sample (a `preview_not_direct` report cannot be the sample) nor the legend. The legend gets a row of its own for it, from `PreviewRefusal::ALL`, labelled in all 12 languages as belonging to refused-trailer reports only. The failure-kind row also left out six kinds a report can carry (`jail_missing_rtkmem`, `load_timeout`, `release_timeout`, `resolve_failed`, `preview_not_direct`, `server_stopped`), though every `FailureClass` reaches `report_error`. It is now built from `FailureClass::ALL`, which is no longer test-only, so a new kind cannot be missing again. Tests read each row's own line: `not_direct` is a substring of `preview_not_direct`, so a search of the whole legend would pass for an omission. Co-Authored-By: Claude Sonnet 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.
A detail-page trailer preview only plays a plain direct play. A refusal reaches Sentry as
PlaybackError: preview_not_direct(PLX-NATIVE-23; on 0.9.0 the same refusal wasunspecified, PLX-NATIVE-1G, 192 events from 49 users in three weeks), but the report did not say which condition refused it. The suspicion is that Auto quality's bandwidth probe choosing HLS refuses previews the server would direct-play; this tag answers it.PlayVerdict::PreviewNeedsDirectPlay { reason }, chosen by the pureplayer::preview::refusalas the first failing condition:no_part(no media part),not_direct(the server offered no direct play, including relay and quality-policy refusals),adaptive(a direct play was on offer and Auto chose HLS).plan.rssnapshots the direct-play offer just before Auto's override, so an Auto refusal of an item the server would transcode anyway still readsnot_direct.playback.preview_refusal, written only for kindpreview_not_direct. The fingerprint is unchanged, so PLX-NATIVE-23 stays one issue.FailureClass::ALL. It listed 9 of 15 kinds and omittedpreview_not_direct,jail_missing_rtkmem,load_timeout,release_timeout,resolve_failedandserver_stopped, all of which reach reports.PRIVACY.mdnames the tag and its three values.Gates
not_direct(a mutation that ignores the pre-Auto snapshot fails it); a 16-input pure-function test; report and body tests; two legend tests, red before the fix.make test-crate C=plx_telemetry DEPS=1: 362 passed, and its dependants (plx_media 2134, plx_screens 2151, plxnative_modules 1375, plx_data 1626, plx_appkit 953, plx_session 339).make check-nodef: clean. All 12 locale catalogues build.🤖 Generated with Claude Code