Repository navigation
player: seek in place on webOS 5+ through LG's public Seek, no reload per seek (#568) - #713
Merged
Merged
Conversation
…Is::Seek (#568) On VP_EXPORTED every direct-play seek was a full fresh Load (black screen, DV/HDR badge re-pop) because the Kodi in-place path reads decompile-derived private offsets proven only on webOS 4.5. Replace the INPLACE_SEEK_OK bool by a per-session SeekMode (Segment, NativeSeek, Reload): VP_EXPORTED selects NativeSeek, which calls the exported Seek(millis) from feed_stream on the landed keyframe with content-time PTS (pts_shift 0). The pump skips flush() for it (Seek flushes itself; a flush is a seek to 0). A refused Seek downgrades the session to Reload and re-posts the target for reload_at. webOS 4.x keeps Segment; old-ABI 3.x stays Reload. /tmp/plxnative-seekmode (dev builds) forces a mode. Decompile evidence recorded in docs/webos5-port.md. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…es the Segment path, and stays refused for the playback (#568) - feed_stream: the private-offset Segment branch runs only in SeekMode::Segment; a flushed keyframe in any other mode anchors nothing and waits for the reload. - pump: the stuck watchdog goes straight to reload_at in Reload mode instead of re-publishing an av_seek. - A native_seek_refused latch survives reload_at (session_seek_mode) and is cleared by a fresh play. - Pump-level hostsim tests (success, refusal past the stuck watchdog, later seeks), probes in ffi_host / engine; wording fixes in engine.rs, mod.rs, webos5-port.md, player/CLAUDE.md. 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.
Closes #568
On webOS 5 and newer every direct-play seek tore the player down and issued a fresh Starfish
Load: a black screen for a moment, and on HDR / Dolby Vision content the TV's format badge again. The in-place seek (flush +setTimeToDecode/setContentInfo+CustomPipeline::sendSegmentEvent) was disabled there on purpose, because it reaches LG-private objects through offsets only ever read off a webOS 4.5 binary.This routes webOS 5+ seeks through LG's public
StarfishMediaAPIs::Seek(const char *millis)instead. It depends on no object layout. LG's own Chromium MSE player uses it in the same buffer-feed mode, and it is exported on every firmware inventory from 2.2.3 to 11.2.0.What changes
INPLACE_SEEK_OKbecomes a per-sessionSeekMode:Segment: webOS 4.x, unchanged.NativeSeek:VP_EXPORTED, i.e. webOS 5+.Reload: old-ABI 3.x, unchanged.NativeSeekmode the pump skipsflush(), because LG'sSeekflushes itself and aflush()after it would re-create the stale-segment stall.pts_shift = 0) and callsSeek(keyframe_ms)before that keyframe is fed.Seek:Segmentmode.Seekagain.sf_seek_ms, guarded bysf_ready_object(). Sink trait:VideoSink::seek, plus a host fake./tmp/plxnative-seekmode(native|segment|reload), so the webOS 4.5 dev set can exercise the new path. It is inert withoutdevtriggers.docs/webos5-port.mdgains a section on the decompiledSeekchain, marking what is proven and what is inferred.Evidence
Seek→AbstractPlayer::seek→CustomPlayer::seekSpi→CustomPipeline::seekSpi, which doesgst_element_seek(FLUSH|KEY_UNIT, start = ms).Load, caps change, HDR re-send or decoder reopen anywhere on the seek path.feed_stream. They check no flush, oneSeekat the keyframe and no reload; a refusal giving exactly onereload_atat the target even when the stuck watchdog fires first, with zero Segment calls; and later seeks in the playback reloading withoutSeek.NativeSeekforced via the dev trigger, 300 s 4K HEVC HDR10 + E-AC-3, direct play):Seek(...) rv=1,pts_shift=0, one SEEKDONE each, 0 fresh Loads, landing on target.Seek, with 0 Loads.Segmentcontrol behaves the same.DT_NEEDEDunchanged;PKcarg and bool return correct on AAPCS.Not verified
request_seekwithout opening the paused-seek preroll, so the pump'sTX.feed_allowed()gate stays shut. A viewer's scrub while paused goes throughbegin_paused_seekand does not hit that gate. The scrub-while-paused path inNativeSeekmode has not been observed on a set; the trigger fix is a follow-up.🤖 Generated with Claude Code