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
@@ -19,6 +19,10 @@
|
||||
<field id="playbackSpeed" type="float" value="1.0" />
|
||||
<field id="enableUI" type="boolean" value="true" />
|
||||
<field id="suppressCaptions" type="boolean" />
|
||||
<field id="globalCaptionMode" type="string" value="Off" />
|
||||
<field id="subtitleTrack" type="string" />
|
||||
<field id="currentSubtitleTrack" type="string" />
|
||||
<field id="availableSubtitleTracks" type="array" value="[]" />
|
||||
<field id="asyncStopSemantics" type="boolean" />
|
||||
<field id="notificationInterval" type="float" />
|
||||
<field id="width" type="float" />
|
||||
@@ -64,6 +68,7 @@
|
||||
<function name="TestSetControl" />
|
||||
<function name="TestSetLive" />
|
||||
<function name="TestSeedSponsorBlock" />
|
||||
<function name="TestSeedPlaybackContent" />
|
||||
<function name="TestSeekToInitialPosition" />
|
||||
<function name="TestErrorRetry" />
|
||||
<function name="TestSetContentLoading" />
|
||||
@@ -110,5 +115,6 @@
|
||||
</Group>
|
||||
<LoadBufferSpinner id="spinner" />
|
||||
<LargePause id="largePause" />
|
||||
<QualityPicker id="qualityPicker" visible="false" />
|
||||
</children>
|
||||
</component>
|
||||
Reference in new issue
Block a user