Can I use AirPlay in iOS 4.3 to send still images to an Apple TV
I am aware that iOS 4.3 has a new API that lets developers send video from their Apps to an AppleTV. Is there any public API that allows developers to stream still images开发者_如何转开发 (Jpegs) instead of video to an Apple TV?
No, only videos.
https://developer.apple.com/library/ios/#releasenotes/General/WhatsNewIniPhoneOS/Articles/iOS4_3.html%23//apple_ref/doc/uid/TP40010567-SW1
Yes this is possible. I am doing this in a presentation app for iPad.
When the Apple TV is connected to your device with mirroring:
Get a reference to the external screen
UIScreen *external = [[UIScreen screens] objectAtIndex: 1];
Set the view you want to send to the tv to use this screen
tvoutWindow.screen = external;
Then send any content to this view. I have a UIImageView in the tvoutWindow which is displaying UIImages for me
精彩评论