External Screen

5 replies [Last post]
MacMike
User offline. Last seen 10 years 46 weeks ago. Offline
Joined: 06/22/2010
Posts:

Hi first cool app you made. i came to your site because i was looking to implement the VGA adapter support for my app. and i looked at your source to learn from it. i also tried you app and the vga support does not work its just black.
how does the mirroring vga support work. i wanna be able to see the same view on ipad as on vga but stil be able to controll the app from ipad. (mirror screen)

Brad Larson
Brad Larson's picture
User offline. Last seen 4 years 22 weeks ago. Offline
Joined: 05/14/2008
Posts:

The external display of 3-D content does not work in the version of the source code I currently distribute. However, you can see how to enable external display of content using the code that I've stubbed out there (simply uncomment the two lines that add observation to the external screen connection / disconnection messages. Also, you can comment out the line in -displayOnExternalOrLocalScreen: for adding the 3-D view to the external window and instead add some other content to get it to display on the other screen.

I describe the process by which external display support can be enabled in your application in the iPad session of my advanced iPhone development course. The course notes for that class also provide a good reference for how to do this.

MacMike
User offline. Last seen 10 years 46 weeks ago. Offline
Joined: 06/22/2010
Posts:

thank you looking at your video right now. however i noticed on your video your app reacts as soon you connect the vga cable, the app installed on my ipad (molecules downloaded from app store) does not react. there is no symbol for external screen appearing. the screen icon only appears if i start the app while the vga connector is connected.

MacMike
User offline. Last seen 10 years 46 weeks ago. Offline
Joined: 06/22/2010
Posts:

one more question. if you make a new UIView for the external View. is it possible to populate that externalView with the same content that should be displayed on your localView? like mirroring?

ps. your code and your help is awesome thanks. learning a lot here :)

Brad Larson
Brad Larson's picture
User offline. Last seen 4 years 22 weeks ago. Offline
Joined: 05/14/2008
Posts:

MacMike wrote:
thank you looking at your video right now. however i noticed on your video your app reacts as soon you connect the vga cable, the app installed on my ipad (molecules downloaded from app store) does not react. there is no symbol for external screen appearing. the screen icon only appears if i start the app while the vga connector is connected.

The reason the App Store version doesn't respond to the connection of an external display is that the observers for the connection of the display are commented out (I didn't want to ship a half-working feature). Search the code for two commented-out lines that reference the notifications for connection and disconnection of the display. If you uncomment those, the application will respond to the external display.

For your other question, there's no support for automatic mirroring of views. You need to keep the views in sync between the two screens yourself.

MacMike
User offline. Last seen 10 years 46 weeks ago. Offline
Joined: 06/22/2010
Posts:

Thank you for your feedback :)
Could you point me to how i keep the 2 views in sync?
The whole 2 views issue is a bit hard to grasp for me but i need that function for my app so i need to understand it :)
Thanks for your help

mike

Syndicate content