iOS将MPMoviePlayerController镜像到全屏电视屏幕播放

我有一个使用MPMoviePlayerController播放video(本地存储)的应用程序

NSString *deviceDir = [[NSUserDefaults standardUserDefaults] stringForKey:WZLDEVICEPATH]; NSString *videopath = [deviceDir stringByAppendingPathComponent:video] NSURL *url = [NSURL fileURLWithPath:videopath]; player = [[MPMoviePlayerController alloc] initWithContentURL:url]; CGRect viewInsetRect = CGRectInset (playerframe, 0.0, 0.0 ); /* Inset the movie frame in the parent view frame. */ [[player view] setFrame:viewInsetRect]; [player view].backgroundColor = [UIColor clearColor]; [player view].tag = TAG_VIDEO_PLAYER; player.movieSourceType = MPMovieSourceTypeFile; [player prepareToPlay]; [self.view addSubview: [player view]]; 

现在我需要将应用程序镜像到外部设备上,镜像对于第二个屏幕(TV)来说可以正常工作,但是电视播放与iPad中的分辨率(宽度x高度)相同,所以我必须全屏电视播放。 有两种不同分辨率的设备可以同步播放吗?

我曾尝试使用MPMoviePlayerController的不同实例的多个窗口,但同步播放会受到影响。 是否有一些解决这些问题的工作?

 [secondScreen setOverscanCompensation: UIScreenOverscanCompensationInsetApplicationFrame]; 

通过以上设置,video以16:9的分辨率开始播放,通过填充整个屏幕和4:3video的顶部和底部的黑条,这是可以的,因为我们知道要保持宽高比,它需要在那里。

注意我也注意到当我们使用iPad Mini的时候,旧的行为还在继续。