OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
spotify.spotify_presentation.SpotifyPresentation Class Reference

One visible view; all completions are guarded by view and track generations. More...

Inheritance diagram for spotify.spotify_presentation.SpotifyPresentation:
ui.media.spotify_presentation_if.SpotifyRequestHandler ui.media.playback_request_handler_if.PlaybackRequestHandlerIf ui.media.track_request_handler_if.TrackRequestHandlerIf ui.media.seek_request_handler_if.SeekRequestHandlerIf ui.media.volume_request_handler_if.VolumeRequestHandlerIf

Public Member Functions

None request_play (self)
 Request media playback.
None request_pause (self)
 Request media playback to pause.
None request_previous_track (self)
 Request the previous track.
None request_next_track (self)
 Request the next track.
None request_seek (self, float position_s)
 Request an absolute position in the current media item.
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_volume (self, int volume_percent)
 Render latest volume intent while the shared service executes asynchronously.
None request_watch_video (self)
 Request a video for the displayed track.
None request_return_to_spotify (self)
 Restore Spotify playback after a video.

Detailed Description

One visible view; all completions are guarded by view and track generations.

Member Function Documentation

◆ request_forward()

None spotify.spotify_presentation.SpotifyPresentation.request_forward ( self,
float seconds )

Request a forward seek from the current position.

Parameters
secondsNon-negative number of seconds to advance.

Reimplemented from ui.media.seek_request_handler_if.SeekRequestHandlerIf.

◆ request_rewind()

None spotify.spotify_presentation.SpotifyPresentation.request_rewind ( self,
float seconds )

Request a backward seek from the current position.

Parameters
secondsNon-negative number of seconds to rewind.

Reimplemented from ui.media.seek_request_handler_if.SeekRequestHandlerIf.

◆ request_seek()

None spotify.spotify_presentation.SpotifyPresentation.request_seek ( self,
float position_s )

Request an absolute position in the current media item.

Parameters
position_sZero-based playback position in seconds.

Reimplemented from ui.media.seek_request_handler_if.SeekRequestHandlerIf.


The documentation for this class was generated from the following file:
  • controllers/spotify/spotify_presentation.py