Player quality + captions controls (piped-features)
- Quality button opens a modal picker over the video: Auto at the top plus every rung from the HLS master's variant list (parsed in the router; Piped videoStreams is unreliable), virtual-focus list like the rest of the dev player's chrome, OK applies / Back cancels, panel auto-sizes. - Applying a quality rebuilds the /api/hls URL with the quality filter and restarts at the saved position (stop->stopped-edge->play), persists to playback.preferred_quality, keeps the retry URL list consistent. - Captions button toggles globalCaptionMode On/Off (+ first-track fallback when the OS language match finds nothing); N/A when the video has none. - Status line above the button row: 'Quality: Auto (1080p) | Captions: On' tracks streamingSegment while auto ramps. - Fix: QualityLevelsFromPiped sort crashed the /streams converter (string vs AA compare); replaced by QualityLevelsFromHlsMaster. - Seam tests for picker open/navigate/apply/cancel/clamp + captions toggle; ButtonRow specs updated for the 4-button row. Lib tag PIPED-LIB-26.
This commit is contained in:
1 parent
b7183f3603
commit
7577f89df6
19 files changed
+887
-23
No files matched your search
@@ -121,5 +121,9 @@
|
||||
<!-- Coordinator pulses `trigger` only on an explicit pause-from-playing, `cancel` on resume. Not chrome-gated. -->
|
||||
<LargePause id="largePause" />
|
||||
|
||||
<!-- ===================== QualityPicker (modal; OUTSIDE Chrome, top of the z-order) ===================== -->
|
||||
<!-- Opened by the Quality button; virtual focus driven by the coordinator (see OpenQualityPicker). -->
|
||||
<QualityPicker id="qualityPicker" visible="false" />
|
||||
|
||||
</children>
|
||||
</component>
|
||||
Reference in new issue
Block a user