iOS: External media source selection

Airplay is a great feature in iOS. So I needed a UI for selection. Also a Slider for the volume. There is an open source project which has a default GUI implementation. But there are problems:

  • Some not reproducible NullException (thats the reason I cannot make an issue for that
  • Slider and Airplay Button are fixed in UI

So I had a look into it. We have to use MPVolumeView for the volume and AVRoutePickerView (iOS11+) for selection of the external sources.
Here es an example how it can be implemented in the GUI (Cuterdio). We have a separate slider and a separate button for Airplay:

Read more