Protocols[edit]
The AirTunes part of the AirPlay protocol stack uses UDP for streaming audio and is based on the RTSP network control protocol.[8] The streams are transcoded using the Apple Lossless codec with 44100 Hz and 2 channels encrypted with AES, requiring the receiver to have access to the appropriate private key to decrypt the streams.[9] The stream is buffered for approximately 2 seconds before playback begins, resulting in a small delay before audio is output after starting an AirPlay stream.[10]
The protocol supports metadata packets that determine the final output volume on the receiving end. This makes it possible to always send audio data unprocessed at its original full volume, preventing sound quality deterioriaton due to reduction in bit depth and thus sound quality which would otherwise occur if changes in volume were made to the source stream before transmitting. It also makes possible the streaming of one source to multiple targets each with its own volume control.[11]
The AirPort Express' streaming media capabilities use Apple's Remote Audio Output Protocol (RAOP), a proprietary variant of RTSP/RTP. Using WDS-bridging,[12] the AirPort Express can allow AirPlay functionality (as well as Internet access, file and print sharing, etc.) across a larger distance in a mixed environment of wired and up to 10 wireless clients.