AirPlay.V2.Pairing (AirPlay v0.4.5)

Copy Markdown View Source

AirPlay 2 transient pairing.

Transient pairing is the no-PIN AP2 path used by many speakers. It performs SRP-6a over /pair-setup, then upgrades the RTSP control connection to the AP2 encrypted channel. This is the first required AP2 milestone before SETUP/audio.

Summary

Functions

Pair transiently with an AirPlay 2 receiver and return an encrypted RTSP state.

Types

t()

@type t() :: %AirPlay.V2.Pairing{
  audio_key: binary(),
  rtsp: AirPlay.V2.Rtsp2.t(),
  shared_secret: binary(),
  type: :transient
}

Functions

transient(host, opts \\ [])

@spec transient(
  String.t(),
  keyword()
) :: {:ok, t()} | {:error, term()}

Pair transiently with an AirPlay 2 receiver and return an encrypted RTSP state.