SIGABRT Issues with UIApplication_TVOut and MPVideoView - is there another way??

Posted by user365920 on Stack Overflow See other posts from Stack Overflow or by user365920
Published on 2010-06-13T23:34:50Z Indexed on 2010/06/13 23:42 UTC
Read the original article Hit count: 369

Filed under:
|

Hi there,

I am due to do a demo in a week of an app which i have been working on for a company - until now, i have been using code taken from this useful tutorial here

The problem is that this no longer seems to be working - causing a SIGABRT inside of the following (see initWithVideoView):

- (void) startTVOut;
{
 // you need to have a main window already open when you call start
 if (!tvoutWindow) {
  deviceWindow = [self keyWindow];

  MPVideoView *vidView = [[MPVideoView alloc] initWithFrame: CGRectZero]; 
  **tvoutWindow = [[MPTVOutWindow alloc] initWithVideoView:vidView];**
  [tvoutWindow makeKeyAndVisible];
  tvoutWindow.userInteractionEnabled = NO;

  mirrorView = [[UIImageView alloc] initWithFrame: [[UIScreen mainScreen] bounds]];

  [self reformatTVOutOrientation];

  mirrorView.center = vidView.center;
  [vidView addSubview: mirrorView];

  [deviceWindow makeKeyAndVisible];

  [NSThread detachNewThreadSelector:@selector(updateLoop) toTarget:self withObject:nil];
 }
}

Can anyone help at all??? This was all working fine, but seems to have stopped working recently - none of my code has changed, so assuming Apple have removed that API (yes, i know it was a private API in the first place, so im not moaning!) Just need to know if there is an alternative way of displaying the contents of my iPhone screen in my app...

Many thanks in advance!

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about video