Question

I want to stream my application on APPLE TV using AirPlay API.? How to use that? Can it work through iPhone and iPad both? If yesy please share some doc regarding or demo for the same

Was it helpful?

Solution

You can implement support for external displays very easily. Here is one blog post about it by Matt Gemmell: http://mattgemmell.com/2010/06/01/ipad-vga-output/

If the user enables AirPlay (by clicking the home button twice and then swiping left to reveal the AirPlay shortcut) with an Apple TV, your app will detect one additional screen, the Apple TV. You can then use the API described in the blog post above to stream your app's view to the Apple TV.

There is no way I know of to add an AirPlay button directly in your app, though.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top