OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.media.seek_request_handler_if.SeekRequestHandlerIf Class Reference

Handle relative and absolute seek requests from a media UI. More...

Inheritance diagram for ui.media.seek_request_handler_if.SeekRequestHandlerIf:
spotify.spotify_media_presenter.SpotifyMediaPresenter spotify.spotify_state_service.SpotifyStateService ui.media.seek_request_handler_stub.SeekRequestHandlerStub

Public Member Functions

None request_rewind (self, float seconds)
 Request a backward seek from the current position.
 
None request_forward (self, float seconds)
 Request a forward seek from the current position.
 
None request_seek (self, float position_s)
 Request an absolute position in the current media item.
 

Detailed Description

Handle relative and absolute seek requests from a media UI.

Member Function Documentation

◆ request_forward()

None ui.media.seek_request_handler_if.SeekRequestHandlerIf.request_forward (   self,
float  seconds 
)

Request a forward seek from the current position.

Parameters
secondsNon-negative number of seconds to advance.

Reimplemented in spotify.spotify_media_presenter.SpotifyMediaPresenter, spotify.spotify_state_service.SpotifyStateService, and ui.media.seek_request_handler_stub.SeekRequestHandlerStub.

◆ request_rewind()

None ui.media.seek_request_handler_if.SeekRequestHandlerIf.request_rewind (   self,
float  seconds 
)

Request a backward seek from the current position.

Parameters
secondsNon-negative number of seconds to rewind.

Reimplemented in spotify.spotify_media_presenter.SpotifyMediaPresenter, spotify.spotify_state_service.SpotifyStateService, and ui.media.seek_request_handler_stub.SeekRequestHandlerStub.

◆ request_seek()

None ui.media.seek_request_handler_if.SeekRequestHandlerIf.request_seek (   self,
float  position_s 
)

Request an absolute position in the current media item.

Parameters
position_sZero-based playback position in seconds.

Reimplemented in spotify.spotify_media_presenter.SpotifyMediaPresenter, spotify.spotify_state_service.SpotifyStateService, and ui.media.seek_request_handler_stub.SeekRequestHandlerStub.


The documentation for this class was generated from the following file: