Bridge a Spotify backend to a toolkit-independent media UI. More...
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_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. | |
| None | request_volume (self, int volume_percent) |
| Request a media playback volume. | |
Bridge a Spotify backend to a toolkit-independent media UI.
| None spotify.spotify_media_presenter.SpotifyMediaPresenter.request_forward | ( | self, | |
| float | seconds | ||
| ) |
Request a forward seek from the current position.
| seconds | Non-negative number of seconds to advance. |
Reimplemented from ui.media.seek_request_handler_if.SeekRequestHandlerIf.
| None spotify.spotify_media_presenter.SpotifyMediaPresenter.request_rewind | ( | self, | |
| float | seconds | ||
| ) |
Request a backward seek from the current position.
| seconds | Non-negative number of seconds to rewind. |
Reimplemented from ui.media.seek_request_handler_if.SeekRequestHandlerIf.
| None spotify.spotify_media_presenter.SpotifyMediaPresenter.request_seek | ( | self, | |
| float | position_s | ||
| ) |
Request an absolute position in the current media item.
| position_s | Zero-based playback position in seconds. |
Reimplemented from ui.media.seek_request_handler_if.SeekRequestHandlerIf.
| None spotify.spotify_media_presenter.SpotifyMediaPresenter.request_volume | ( | self, | |
| int | volume_percent | ||
| ) |
Request a media playback volume.
| volume_percent | Requested volume from 0 through 100. |
Reimplemented from ui.media.volume_request_handler_if.VolumeRequestHandlerIf.