Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

allowsAirPlayVideo property on iOS 6

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.

like image 869
camargo1985 Avatar asked Dec 07 '22 11:12

camargo1985


1 Answers

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!)

like image 89
coco Avatar answered Jan 04 '23 23:01

coco