pub enum Opcode {
Show 20 variants
None = 0,
Play = 1,
Pause = 2,
Resume = 3,
Stop = 4,
Seek = 5,
PlaybackUpdate = 6,
VolumeUpdate = 7,
SetVolume = 8,
PlaybackError = 9,
SetSpeed = 10,
Version = 11,
Ping = 12,
Pong = 13,
Initial = 14,
PlayUpdate = 15,
SetPlaylistItem = 16,
SubscribeEvent = 17,
UnsubscribeEvent = 18,
Event = 19,
}Variants§
None = 0
Not used
Play = 1
Sender message to play media content, body is v3::PlayMessage
Pause = 2
Sender message to pause media content, no body
Resume = 3
Sender message to resume media content, no body
Stop = 4
Sender message to stop media content, no body
Seek = 5
Sender message to seek, body is SeekMessage
PlaybackUpdate = 6
Receiver message to notify an updated playback state, body is v3::PlaybackUpdateMessage
VolumeUpdate = 7
Receiver message to notify when the volume has changed, body is VolumeUpdateMessage
SetVolume = 8
Sender message to change volume, body is SetVolumeMessage
PlaybackError = 9
Server message to notify the sender a playback error happened, body is PlaybackErrorMessage
SetSpeed = 10
Sender message to change playback speed, body is SetSpeedMessage
Version = 11
Message to notify the other of the current version, body is VersionMessage
Ping = 12
Message to get the other party to pong, no body
Pong = 13
Message to respond to a ping from the other party, no body
Initial = 14
Message to notify the other party of device information and state, body is InitialSenderMessage if receiver or
v3::InitialReceiverMessage if sender
PlayUpdate = 15
Receiver message to notify all senders when any device has sent a v3::PlayMessage, body is v3::PlayUpdateMessage
SetPlaylistItem = 16
Sender message to set the item index in a playlist to play content from, body is v3::SetPlaylistItemMessage
SubscribeEvent = 17
Sender message to subscribe to a receiver event, body is v3::SubscribeEventMessage
UnsubscribeEvent = 18
Sender message to unsubscribe to a receiver event, body is v3::UnsubscribeEventMessage
Event = 19
Receiver message to notify when a sender subscribed event has occurred, body is v3::EventMessage