4

Does anyone know what are supposed to be used do disable AirPlay video playback on iOS 6.0?

I tested in iOS 6.0 and 5.1 and still working.

At this moment i'm using allowsAirPlayVideo = NO, but on iOS 6 it's Deprecated according the Apple Documentation:

Deprecated AVPlayer Methods

Thanks.

camargo1985
  • 41
  • 1
  • 4

2 Answers2

11

Not the only thing missing from the online documentation! There are three deprecated AVPlayer methods in iOS 6:

airPlayVideoActive
allowsAirPlayVideo
usesAirPlayVideoWhileAirPlayScreenIsActive

It seems they have been replaced with:

externalPlaybackActive
allowsExternalPlayback
usesExternalPlaybackWhileExternalScreenIsActive

Information gleaned from this set of diffs. (Hello Apple? You could do better than that!)

coco
  • 2,998
  • 1
  • 35
  • 58
4

The property you should set is allowsExternalPlayback in iOS 6 instead of allowsAirPlayVideo from iOS 5.

cspolton
  • 4,495
  • 4
  • 26
  • 34
mhp
  • 41
  • 2