Protocols

Overview

Quick glance at messages exchanged between sender and receiver.

RTSP - Real Time audio

Start

sequenceDiagram Sender->>Receiver:GET /info activate Receiver Note right of Receiver: txtAirPlay Receiver->>Sender: 200 OK deactivate Receiver activate Sender Note left of Sender: Sender info, timing
info and keys Sender->>Receiver:SETUP deactivate Sender activate Receiver Note right of Receiver: Setup eventPort
and timingPort Receiver->>Sender: 200 OK deactivate Receiver activate Sender Sender->>Receiver:GET /info deactivate Sender activate Receiver Note right of Receiver: additional info
like initialVolume Receiver->>Sender: 200 OK deactivate Receiver activate Sender Sender->>Receiver:RECORD deactivate Sender activate Receiver Receiver->>Sender: 200 OK deactivate Receiver activate Sender Sender->>Receiver:SETPEERS deactivate Sender activate Receiver Receiver->>Sender: 200 OK deactivate Receiver activate Sender Sender->>Receiver:POST /command deactivate Sender opt Get volume Sender->>Receiver:GET_PARAMETER end Sender->>Receiver:SET_PARAMETER Note right of Receiver: Set volume loop Feedback Sender->>Receiver:POST /feedback Receiver->>Sender:200 OK end

Play

sequenceDiagram Note left of Sender: Setup controlPort
and audio format Sender->>Receiver:SETUP activate Receiver Note right of Receiver: Setup controlPort
and dataPort Receiver->>Sender: 200 OK deactivate Receiver activate Sender Sender->>Receiver:POST /command deactivate Sender Sender->>Receiver:POST /command Sender->>Receiver:FLUSH Sender->>Receiver:POST /command

Pause

sequenceDiagram Sender->>Receiver:TEARDOWN activate Receiver Note right of Receiver: Stream remains
active Receiver->>Sender: 200 OK deactivate Receiver

Multi-room group change

sequenceDiagram Sender->>Receiver:SETPEERS activate Receiver Note right of Receiver: Peer add/remove Receiver->>Sender: 200 OK deactivate Receiver

Set volume

sequenceDiagram Sender->>Receiver:SET_PARAMETER activate Receiver Note right of Receiver: volume Receiver->>Sender: 200 OK deactivate Receiver

End

sequenceDiagram Sender->>Receiver:TEARDOWN activate Receiver Note right of Receiver: Stream destroyed Receiver->>Sender: 200 OK deactivate Receiver