title: Approximating audio latency in iOS for airplay, bluetooth and related technologies
body: <p>Is there a method of determining the delay in audio when playing to bluetooth (or some other device, like airplay) on iOS?</p>
  
  <p>I've searched and found a few things. The <a href="https://www.bluetooth.org/docman/handlers/DownloadDoc.ashx?doc_id=260859&amp;vId=290074" rel="nofollow noreferrer">advanced audio distribution spec</a>, for example, makes several references to "delay" reporting, but I'm not clear how to access this from iOS in the more general case of audio playback to some device.</p>
  
  <p>If there were a method, iOS would use that method to play videos with the audio and video in sync which it doesn't seem to do. However, I do see some references to other systems being able to compensate for this (eg apparently the android YouTube player can compensate: <a href="https://stackoverflow.com/questions/35139179/detect-or-approximate-bluetooth-latency-on-android-audio-playback">Detect or Approximate Bluetooth Latency on Android (Audio Playback)</a>)</p>