Get desktop application:
View/edit binary Protocol Buffers messages
Everything related to player events
Subscribe to events happening
all updates that can happen from the server side, without the client to have to ask explicitly naming convention for the stream update specific messages is to add the "Update" prefix, even if a similar non-prefix message already exists
A Track got added to the playlist, this message contains where it was added and all the metadata required for display.
Used in:
The index the track(s) are added at. If this is not at the end, all tracks at that index and after need to be shifted to make place for this new one.
The Track to add at the index
Indicate that the playlist has changed its loop mode
Used in:
A Track got removed from the playlist.
Used in:
The index of the track that was removed.
The Id of the track that was removed
/ Indicate that the playlist has been shuffled and should be re-fetched
Used in:
Used in:
The first index to swap
The second index to swap
The Gapless state changed, send new information.
Used in:
reuse the existing message
Indicate that some events could not be send Like a "Lagged" Error from tokio-stream
Used in:
TODO: is play-state (playing / paused / ??) the only things this should do?
Used in:
reuse the existing message
Used in:
There is a progress update to the currently playing track, may not be fired if paused or stopped
Used in:
The Speed changed, send new information
Used in:
reuse the existing message
The track changed in some way, send new information This includes everything from changing to a new track, new radio title, etc This is *not* used for regular track progress updates NOTE: this may or may not be sent for the initial track after startup as the client may connect after the track started
Used in:
The index into the playlist of which track changed.
all values below should be moved into their own "Track" message at some point instead of having the TUI fetch everything from the file itself radio title, track title the following is (linux protobuf) 3.15, ubuntu 2204 still has (linux protobuf) 3.12 optional string title = 3; the following "oneof" is wire equivalent to the above "optional"
The Volume changed, send new information
Used in:
reuse the existing message