Repository navigation
player: webOS 3 seeks in place through LG's public Seek - #1038
Merged
Merged
Conversation
The old-ABI libraries reloaded on every direct-play seek: the private Segment offsets are from a 4.5 binary and are not used there, and the public Seek had not been tried on that ABI. Seek takes a const char*, so its symbol and calling convention are the same on the COW and cxx11 ABIs. select_seek_mode now picks NativeSeek for an old-ABI library on the ACB plane when the set reports release 3 (old_abi_seek_tested). A refused Seek still drops the playback to Reload, and a seek that does not anchor within SEEK_STUCK_MS is retried, then reloaded. Neither catches a Seek that is accepted and then anchors wrong, so other old-ABI releases (webOS 2, an old-ABI 4.x build, an unknown release) keep reloading, as does VP_NONE. A speed other than 1x still reloads in every mode. Device check, OLED55B7V-Z (3.9.3, COW Feed): 80 seeks through Seek (53 forced with the plxnative-seekmode trigger on main, 27 chosen by this branch) over MP4 H.264, MKV 4K HDR10 HEVC with E-AC-3 Atmos, and MKV HEVC with SRT subtitles on; every Seek accepted and anchored, no stall or fallback, playback running on for up to 197 s after a seek. From the commit to playback moving again: reload 3-4 s with a black screen, Seek 1-3 s with the last frame held. Signed-off-by: Dimitrije Juras <[email protected]>
… pump Reload comment - engine.rs (native_seek_tests): the "inplace_layout_known + old_abi_seek_tested -> select_seek_mode" composition was written out in a closure and again inline; one `mode_for(major, cow, window_mode)` helper now serves both, so the tests compose the facts in one place, as `start_bufferfeed_inner` does. - pump.rs: the `Reload` comment named only "no video plane" as a way a session lands on reload-per-seek; webOS 2, an old-ABI 4.x build and an unknown release also reload (`select_seek_mode`), so it now says so. Behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
|
Thanks @dimitrije83, 80 seeks on a real 3.9.3 set is exactly the evidence this needed. Merged. Two small things I pushed before merging: the seek-mode tests share one |
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.
On webOS 3.x every direct-play seek is a full reload today. The old C++ ABI rules out the private
Segmentoffsets (#578, #581), and the publicSeekwas left out because nobody had tried it on that ABI. I tried it on my 3.9.3 set, and it works: a seek becomes a cut, where it was a black screen and a freshLoad.The change
select_seek_modenow picksNativeSeekfor an old-ABI library on the ACB plane when the set reports release 3:VP_EXPORTED(webOS 5+)NativeSeekNativeSeekSegmentSegmentReloadNativeSeekReloadReloadVP_NONEReloadReloadSeekis_ZN17StarfishMediaAPIs4SeekEPKc. It takes aconst char*, so its symbol and calling convention are the same on the COW and cxx11 ABIs. That it also behaves the same rests on the device test below, not on the decompile indocs/webos5-port.md, which is of 4.5. The private verbs still never run on 3.x.The nets are the ones webOS 5+ already has:
Seekdrops the playback toReload(native_seek_refused);SEEK_STUCK_MSis retried, then reloaded.Neither net catches a
Seekthat is accepted and then anchors wrong: the stale-segment stall, which shows up about 48 s later as BufferFull and "Playing error". That's why the new branch is gated to the one release that's tested (old_abi_seek_tested,major == 3) and not to every old-ABI library. A seek at a speed other than 1x still reloads in every mode.The rest of the diff is docs and tests:
SeekMode,select_seek_modeandseek_hud_regressionscomments, the player's CLAUDE.md, two pump/engine comments, the README's webOS 3.x row, and a webOS 3 paragraph indocs/webos5-port.md's "The publicSeek";the_other_firmwares_keep_their_modesbecomeseach_firmware_gets_its_seek_modeand covers each row of the table above;Seekon webOS 3 keeps the playback onReloadacross the reload, and that a fresh play clears it.Tested
On an LG OLED55B7V-Z, platform release 3.9.3 (
feed abi: cow), Developer Mode, debug-flavour builds withdevtriggersonly. There were three phases:plxnative-seekmode=native;seek mode: NativeSeek (layout_known=false old_abi_seek=true)on every play.Results:
Seek: 53 forced by the trigger on main, 27 chosen by this branch. EverySeekreturned 1. No downgrade, no stuck-seek retry, no reload, no BufferFull, noPlaying error.loop=lines, so ±1 s: reload 3–4 s,Seek1–3 s, most often 1 (9 reload seeks against the same file).Loads (60–80 ms), reopens the file (110–170 ms) and primes from scratch, with the picture black throughout.Seekthe last frame stays on screen until the new one arrives, and only the demuxer's reopen-and-seek and the prime remain.speed: pipeline audio audio/x-raw 48 kHz x2 -> ok).make check-cargopasses (20,050 tests, 0 failed, clippy clean). In the fullmake check,tools/test_tv_sched_trace.py'stest_bad_argumentsfails on this Mac (Python 3.15). It fails the same way on a clean checkout of main, and nothing in this diff touches it.ci/test_build_gc.pyfailed once while another process was using.gitand passes on its own.Only 3.9.3 is tested. Other 3.x releases (3.4 included) also report release 3, so they get
Seektoo, with the refusal and stuck-seek nets. A report from one of them would be welcome.