title: Build Command-Center like Media Controls
body: <p>I want to build a control in my app that can play/pause and skip the sound that is played in the background. This should behave the same way as the media control does for all different media sources at the control center.
  <a href="https://i.stack.imgur.com/o5bpv.jpg" rel="nofollow noreferrer">Screenshot</a></p>
  <p>I played around with various options. AVAudioSession, MPRemoteCommandCenter and also acquiring some Bluetooth profiles, as headphones can play/pause background music as well. Unfortunately nothing was able to play/pause the background music.</p>
  <p>Does anyone have an idea how to make this behavior happen.</p>