Search code examples
ipadoutputtelevisionairdrop

iPad App mirroring - TV out


I have a View : which plays video . On view we can able to add image / Text above video layer .

Now we would like to show view with video playing on TV output .

I have used External Display Class ,Is there any way to get desired output .


Solution

  • Check out the Multiple Display Programming Guide by Apple. You will need to listen for UIScreenDidConnectNotification notifications and create a new UIWindow instance with your content to attach to the new UIScreen.

    You may also find the AirPlay for Developers page helpful, particularly the WWDC videos.

    Edit: if you are looking for a way to programmatically enable mirroring, this is not allowed by Apple. You will need to direct your users to bring up the system bar and toggle in on their own.