Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 23    Views: 118

Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
04/21/12 08:23 PM (13 years ago)

Photo & Video Output Display To TV

Hey All, I have videos and an image gallery in my app with the intent to project the items onto my plasma screen. I have the required adapter to go from the ipad to the tv. For some reason when I try to Project my photo gallery or background videos it does not project. When I try an app that I bought with videos it works fine also YouTube works as well. Is there an output code that I am missing that is preventing my stuff to display on my screen from my BT app. T Any help would be great. Thanks AM
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
04/21/12 08:25 PM (13 years ago)
Many projectors do not output app content, only video and YouTube. I'll bet the app doesn't even show on the projector, does it?
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
04/21/12 08:27 PM (13 years ago)
Sorry, just saw you said an app you have does output, interesting. Also see you said plasma, sorry. Just saw projector amd assumed..... Have tried several projectors and output varies across them all. Tried a neat laser one recently, great for YouTube and vids but wouldn't work with apps or images.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/21/12 08:37 PM (13 years ago)
Mac u think there's a fix to this
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
04/21/12 08:37 PM (13 years ago)
This link has the files and how to implement. It works for my app http://www.touchcentric.com/blog/archives/123 I only set it up to be "out" all the time.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
04/21/12 08:40 PM (13 years ago)
@jbrzensk if that works that is a sweet link, good man. @Rad Doc if that works let me know, will be useful.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/21/12 08:46 PM (13 years ago)
Jb, thank u very much. Question, would u be able to provide with a screen shot of where u placed the code in Xcode.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/21/12 08:53 PM (13 years ago)
@mac, I'll keep u posted. Wish me luck
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
04/21/12 09:15 PM (13 years ago)
https://sites.google.com/site/jbrzensk/Screen%20Shot%202012-04-21%20at%2010.11.01%20PM.png Its in cpma_appDelegate.m, I added it right under my Parse code. For the other files, the .m and .h files, I had to add the <UIKit> and <Framework> to one or both to get them not to throw errors. I would send a screen shot but my vga cable stopped working with iOS 5.1
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/21/12 09:23 PM (13 years ago)
@jb, thanks pal. I will give it a try and let you know if I had success. Did u drag the files into anywhere in particular or just into the project
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
04/21/12 09:26 PM (13 years ago)
Just into the project. I guess I'm saying they aren't in any folders, and it was just the two tv files.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/21/12 09:29 PM (13 years ago)
Thanks again.
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
04/21/12 10:03 PM (13 years ago)
I am soo sorry. You have to put the [[TVOutManager sharedInstance] startTVOut]; in one of the screens. I put mine in the BT_screen_menuButtons because thats the first screen that comes up. I just quickly looked at the code, and i originally put it in the appdelegate, but then when it didn't work, I put it in the other screen, I just forgot I did that. I think the code runs too fast, so you have to trigger it a little bit after it starts, like on the first screen of your app. https://sites.google.com/site/jbrzensk/Screen%20Shot%202012-04-21%20at%2011.01.14%20PM.png
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
04/22/12 09:33 AM (13 years ago)
wow does this open a door to do some exciting stuff with an APP! i might have to get one of those adapters to tinker with this. thanks for the link and tips on how you got it working in your BT app. i'm just starting to understand how those classes work and these code samples where they break it down to the absolute minimum are great for learning. this is great stuff and most appreciated!
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/23/12 02:17 AM (13 years ago)
@JB, Im just getting around to the install of TVOutManager and retrieving the files from Github. Here are a few questions i had. 1. Did you download the RobTerrell Code? I found a few but this seems to be on the top of the list. 2. Which <UIKit> and <Frameworks did you have add? 3. Where did you place your code in the buttons section, code was obscured by image. Looking for a landmark to drop it in. 4. I am using a menu list screen. Can i add this code it to a list page or it has to be buttons? Your help is much appreciated. Thanks Anthony
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
04/23/12 06:51 AM (13 years ago)
1. I downloaded the whole project as a zip and opened it in Xcode. I went through and looked at the code so I could understand what was happening, ran it, played around with what he had done. The two tvOutManager files I needed I just dragged to my project, into the root folder. 2. Those are the two I added. <Foundation/Foundation.h> and <UIKit/UIKit.h>, I think the tvOutManager.m file would have a bunch of errors if I did not add these. They are in both files now 3. For the buttons screen, I put it right after the viewDidLoad, a couple lines down. Just stick it somewhere in there. 4. BT_menulist has the same start, so I guess putting it after the viewDidLoad on that screen would work too.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
05/04/12 02:03 AM (13 years ago)
Hey Jared, Thanks for the information. It seems to be projecting a tv out for everything in my app with the exception of the most important thing my videos.I am getting a black screen that only shows the audio tools such as play, pause, etc. and the top duration bar. Am i missing something? My pictures display great but not videos. Does it allow tv out for .mp4 video files. Anthony
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
05/04/12 06:27 AM (13 years ago)
Sorry to hear that. I do not have video in my aps, so I never had that problem. Are you building for iOS 4 or higher, I know the lower ones are missing some things to make it run. What screen are you using to show videos? I can go to a website in my app, and watch video and it broadcasts the video full screen, regardless of how big the video is imbedded in the website. Another thought, in the TvOutManager.h file, there are a couple of line commented out in the very beginning, right after the warning. Try running with these lines uncommented. It will show all the animations, and loading stuff, maybe it will show your videos.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
05/04/12 07:52 AM (13 years ago)
jared, I am using the streaming video screen to show video. Videos are embedded into the app. I ran it using 5.1 as my target and project and that didn't work. Also my TvOutManager.h file does not show any warnings. Its a total of 40 lines. I've attached a link to the Screenshot. http://tinyurl.com/cd5m4kq
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
05/04/12 11:50 AM (13 years ago)
D'oh. I meant the .m file. Here is a screenshot. http://tinyurl.com/7c4wbfl The two lines after the warning.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
05/04/12 02:18 PM (13 years ago)
Jared, You're a gem. Thank you soo much for your help. It was exactly as you said, Just uncommented the 2 lines and it worked perfectly. Anthony.
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
05/04/12 02:47 PM (13 years ago)
Nice!!!
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
05/08/12 12:06 PM (13 years ago)
Hey Jared, So i implemented the code and it works perfectly!! Now the big problem.I read that this class is not allowed or accepted in the appstore and may only be good for demos or trade shows. When trying to submit i get errors that UIGetImageScreen not allowed. Have you had this problem.
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
05/08/12 12:29 PM (13 years ago)
That's why there are all the warnings! I do not have video, so I never implemented those two lines of code you de-commented, so mine were accepted. I researched the tv out and it will not mirror videos or the camera the way it is written, which is ok for most, but not your app with video. This was another source of video code, similar to the previous. Never used it because the first worked for me. Mabe it will work for you. Do not know if it will support video http://mattgemmell.com/2010/06/01/ipad-vga-output/
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.