package player

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service MusicPlayer

player.proto:4

message Duration

player.proto:87

using a custom Duration that matches rust's definition, as rust's may not fit into google's well-known Duration

Used in: PlayerTime, PlaylistAddTrack

message Empty

player.proto:45

Used as request type in: MusicPlayer.CycleLoop, MusicPlayer.GetPlaylist, MusicPlayer.GetProgress, MusicPlayer.ReloadConfig, MusicPlayer.RemoveDeletedTracks, MusicPlayer.SeekBackward, MusicPlayer.SeekForward, MusicPlayer.ShufflePlaylist, MusicPlayer.SkipNext, MusicPlayer.SkipPrevious, MusicPlayer.SpeedDown, MusicPlayer.SpeedUp, MusicPlayer.SubscribeServerUpdates, MusicPlayer.ToggleGapless, MusicPlayer.TogglePause, MusicPlayer.VolumeDown, MusicPlayer.VolumeUp

Used as response type in: MusicPlayer.AddToPlaylist, MusicPlayer.PlaySpecific, MusicPlayer.ReloadConfig, MusicPlayer.RemoveDeletedTracks, MusicPlayer.RemoveFromPlaylist, MusicPlayer.ShufflePlaylist, MusicPlayer.SkipNext, MusicPlayer.SkipPrevious, MusicPlayer.SwapTracks

(message has no fields)

message GaplessState

player.proto:81

A Gapless state.

Used as response type in: MusicPlayer.ToggleGapless

Used as field type in: UpdateGaplessChanged

message PlayState

player.proto:48

A play status.

Used as response type in: MusicPlayer.TogglePause

Used as field type in: UpdatePlayStateChanged

message PlayerTime

player.proto:53

Used as response type in: MusicPlayer.SeekBackward, MusicPlayer.SeekForward

Used as field type in: GetProgressResponse, UpdateTrackChanged

message PlaylistAddTrack

player.proto:184

A Track got added to the playlist, this message contains where it was added and all the metadata required for display.

Used in: PlaylistTracks, UpdatePlaylist

message PlaylistCleared

player.proto:214

The Playlist got completely cleared

empty as there are no values, but not using "Empty" to have a unique message id

Used in: UpdatePlaylist

(message has no fields)

message PlaylistLoopMode

player.proto:219

The current Loop mode for the playlist

Used as response type in: MusicPlayer.CycleLoop

Used as field type in: UpdatePlaylist

message PlaylistRemoveTrack

player.proto:205

A Track got removed from the playlist.

Used in: UpdatePlaylist

message PlaylistShuffled

player.proto:266

/ Indicate that the playlist has been shuffled and should be re-fetched

Used in: UpdatePlaylist

message PlaylistSwapTracks

player.proto:225

Some track needs to be swapped.

Used as request type in: MusicPlayer.SwapTracks

Used as field type in: UpdatePlaylist

message PlaylistTracks

player.proto:167

All tracks in the current playlist, they *should* be ordered from lowest to highest index.

Used as response type in: MusicPlayer.GetPlaylist

Used as field type in: PlaylistShuffled

message PlaylistTracksToRemoveClear

player.proto:261

/ Clear the entire playlist

empty as there are no values, but not using "Empty" to have a unique message id

Used in: PlaylistTracksToRemove

(message has no fields)

message PlaylistTracksToRemoveIndexed

player.proto:251

Remove multiple tracks from a playlist

Used in: PlaylistTracksToRemove

message SpeedReply

player.proto:76

Used as response type in: MusicPlayer.SpeedDown, MusicPlayer.SpeedUp

Used as field type in: UpdateSpeedChanged

message TrackId

player.proto:271

A Identifier for a track.

Used in: PlaylistAddTrack, PlaylistPlaySpecific, PlaylistRemoveTrack, PlaylistTracksToAdd, PlaylistTracksToRemoveIndexed

message UpdateGaplessChanged

player.proto:132

The Gapless state changed, send new information.

Used in: StreamUpdates

message UpdateMissedEvents

player.proto:109

Indicate that some events could not be send Like a "Lagged" Error from tokio-stream

Used in: StreamUpdates

message UpdatePlayStateChanged

player.proto:126

TODO: is play-state (playing / paused / ??) the only things this should do?

Used in: StreamUpdates

message UpdatePlaylist

player.proto:172

Used in: StreamUpdates

message UpdateSpeedChanged

player.proto:120

The Speed changed, send new information

Used in: StreamUpdates

message UpdateTrackChanged

player.proto:141

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: StreamUpdates

message UpdateVolumeChanged

player.proto:114

The Volume changed, send new information

Used in: StreamUpdates

message VolumeReply

player.proto:71

Used as response type in: MusicPlayer.VolumeDown, MusicPlayer.VolumeUp

Used as field type in: UpdateVolumeChanged