3

I am working around airplaying in iOS and I can able to do that without any issues. My issue is when mirroring is turned on i can see my mobile screen on apple tv, but I want to turn off mirroring programmatically and have to show apple tv default player and this is possible because I seen Netflix app they are doing this.

So could any one help in this?

Yohan
  • 1,108
  • 9
  • 21

1 Answers1

5

Set usesExternalPlaybackWhileExternalScreenIsActive property to YES. Go through the following doc

https://developer.apple.com/documentation/avfoundation/avplayer/1624255-usesexternalplaybackwhileexterna

MGY
  • 7,245
  • 5
  • 41
  • 74
Tirth
  • 7,801
  • 9
  • 55
  • 88