AVPlayer and MPMusicPlayerController at the same time

How is it possible to play hls video while streaming Apple music and output everything on Airplay?


As I understand it I have to output video via AVPlayer and Apple Music via MPMusicPlayerController. If it's running at the same time, we'll only output one or the other at the same time.


What would be the right way?

AVPlayer and MPMusicPlayerController at the same time
 
 
Q