Expand description
Sleep-timer and autoplay commands.
TRACES: UR-026, UR-023 | DR-029, DR-047, DR-049
Thin command adapters over PlayerController’s sleep-timer and autoplay
logic, plus persistence of autoplay settings to the database.
Functions§
- player_
cancel_ autoplay_ countdown - Cancel active autoplay countdown
- player_
cancel_ sleep_ timer - Cancel sleep timer
- player_
get_ autoplay_ settings - Get autoplay settings
- player_
get_ sleep_ timer - Get current sleep timer state
- player_
on_ playback_ ended - Handle playback ended event - triggers autoplay decision logic This is called from:
- player_
play_ next_ episode - Play next episode (user confirmed from popup)
- player_
recover_ stream - Try to recover playback after a recoverable player error, reporting whether it was handled.
- player_
report_ media_ loaded - Report that a webview media element finished loading and knows its duration.
- player_
report_ position - Report a webview media element’s position tick (seconds). The adapter should throttle these to roughly match the native backends’ ~250ms cadence.
- player_
report_ state - Report a webview media element’s state change (playing/paused/loading/stopped/idle).
- player_
set_ autoplay_ settings - Set autoplay settings and persist to database
- player_
set_ sleep_ timer - Set sleep timer mode