Skip to main content

Module seek

Module seek 

Source
Expand description

Video seek strategy decision logic.

This is pure logic, extracted from the command layer so it can be unit-tested in the player core. The player_seek_video command translates the resulting VideoSeekStrategy into a concrete backend/frontend action.

Enums§

SkipAction
What a lockscreen skip button means for the playback that is actually running.
VideoSeekStrategy
Seek strategy for video playback, derived from a stream’s characteristics.

Constants§

SKIP_BACK_SECONDS
How far a lockscreen skip-back jumps while background audio owns playback.
SKIP_FORWARD_SECONDS
How far a lockscreen skip-forward jumps while background audio owns playback.

Functions§

determine_video_seek_strategy
Determine the video seek strategy based on stream characteristics.
resolve_skip_action
Decide whether a lockscreen skip advances the queue or scrubs the current item.