diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-02 13:19:49 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-02 13:19:49 +0100 |
| commit | 50cd2a17734dee4c4739112261fc40974cce409a (patch) | |
| tree | 027366c170eb8dc035c5bd24be2669c41df64f28 /src/ctl.rs | |
| parent | state: persist the queue and pick up where playback stopped (diff) | |
| download | rsplayer-50cd2a17734dee4c4739112261fc40974cce409a.tar.gz rsplayer-50cd2a17734dee4c4739112261fc40974cce409a.zip | |
seek: jump within the current track from the CLI and over MPRIS
`rsp seek 1:30`, `rsp seek +15`, `rsp seek -30` and `rsp seek` (print the
position) drive a new AudioCommand that seeks the format reader, resets the
decoder and drops the buffered samples, so the cpal stream keeps running and
playback continues from the new spot.
MPRIS gets a working Seek/SetPosition, reports CanSeek, and the state watcher
now emits Seeked when the playhead jumps (not just on track changes), which is
what clients need to move their progress bar after an external seek.
`rsp status` also reports the position (and duration when known) and says
Paused instead of Stopped when a track is loaded but not playing.
Diffstat (limited to 'src/ctl.rs')
0 files changed, 0 insertions, 0 deletions
