AVComposition breaks on Airplay

Viewed 527

I have a video composition which I'd like to play over Airplay (without mirroring). The app works as expected when using normal Airplay mirroring, but I'd like to get the speed, reliability, and resolution bump you get from using Airplay video instead.

The problem is that when I set

player.usesAirPlayVideoWhileAirPlayScreenIsActive = YES;

...the player goes blank.

Notes:

  • Since I don't create separate windows for each display, they are both trying to use the same AVPlayer.
  • My AVVideoComposition contains different files and adds opacity ramps between them.
  • This unanswered question suggests that the problem is more likely due to the fact that I'm playing an AVComposition than the use of a shared player: AVComposition doesn't play via Airplay Video

Two questions:

  1. Do I have to get rid of the player on the iPad?
  2. Can an AVVideoComposition ever be played over AirPlay?
2 Answers
Related