iOS AirPlay and secondary display

42 views
Skip to first unread message

Mark Smith

unread,
Mar 20, 2013, 12:11:18 PM3/20/13
to a2-coc...@googlegroups.com
Are there any AirPlay / external display experts on the list?

My company modified one of our iPad apps so that different content is
shown on an external display (that is, we added support for a secondary
UIScreen with its own view controller and views). This was fairly easy
to do and it works well, especially if the external display is connected
via a physical cable.

But with AirPlay to an Apple TV (3rd generation), there are two annoyances:

1) The resolution seems to be limited to 720p (1280 x 720 pixels). Is
there any way to get 1080p resolution from our app (we are not playing
video content). I was under the impression that some games output at
1080p via AirPlay. If so, I wonder how they do it?

2) For the secondary display to work, the user has to enable AirPlay
mirroring. Is there a way to provide a control within our app to enable
AirPlay? We are not using MPMoviePlayerController or AVPlayer.

I don't think AirPlay will be used too much with the app we are working
on now, but we are trying to understand our options.

Thanks!

--
Mark Smith
Pearl Crescent, LLC
http://pearlcrescent.com/

Chris Adamson

unread,
Mar 20, 2013, 12:37:47 PM3/20/13
to a2-coc...@googlegroups.com
I've seen apps that show just the AirPlay control. I don't know how they do this, unless they're getting the MPVolumeView (which includes the AirPlay control to the right of the volume slider) and then deliberately obscuring it to only show the rightmost n pixels. But then, how would you know not to show it at all if there are no AirPlay devices available?

--Chris

Gormaya

unread,
Mar 20, 2013, 1:32:35 PM3/20/13
to a2-coc...@googlegroups.com
I use the MPVolumeView in one of my apps. The Airplay control appears and disappears automatically based on if there are any Airplay devices in range. - Duane

-- 
Follow us on Twitter @Gormaya
Recipe Timer, Conversions for Cooking, Substitutions
Gormaya | Apps for Cooks

--
You received this message because you are subscribed to the Google Groups "CocoaHeads Ann Arbor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to a2-cocoahead...@googlegroups.com.
To post to this group, send email to a2-coc...@googlegroups.com.
Visit this group at http://groups.google.com/group/a2-cocoaheads?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Chris Adamson

unread,
Mar 20, 2013, 1:47:24 PM3/20/13
to a2-coc...@googlegroups.com
Right. My point being that if you did do the trick where you only showed the right-most 20pt (or whatever) of the MPVolumeView and covered up the rest -- with the intention of showing only the AirPlay button -- then in a case where there's no local AirPlay, you'd just show the rightmost 20pt of the volume slider. So I don't know how you avoid that, or if there's some better way to show just the AirPlay button.

--Chris

Gormaya

unread,
Mar 20, 2013, 2:02:00 PM3/20/13
to a2-coc...@googlegroups.com
MPVolumeView showsVolumeSlider to false? iOS 4.2 and later. - Duane

-- 
Follow us on Twitter @Gormaya
Recipe Timer, Conversions for Cooking, Substitutions
Gormaya | Apps for Cooks

Reply all
Reply to author
Forward
0 new messages