我有 iPad3、iPad2、iPad1 + 所有模拟器。在应用程序中,我播放不同类型的视频:m4v、mov、mp4...
问题是:仅在 iPad3 iOS 6.0.1 上。视频播放没有声音!客户端在 iPad3 上也有同样的问题!
有什么想法有什么问题吗?
编辑:
if ( ![TVOutManager sharedInstance].tvoutWindow )
{
player = [[MPMoviePlayerController alloc] initWithContentURL: URL];
player.view.autoresizingMask = UIViewAutoresizingFlexibleWidth;
[player setUseApplicationAudioSession:YES];
self.view.autoresizesSubviews = YES;
CGFloat originY = 0;
if (!currentFile.isHideToolbar)
originY = 44;
CGRect f = self.view.bounds;
f.origin.y = originY;
f.size.height -= originY;
[player.view setFrame: f];
[self.view addSubview: player.view];
[self.view bringSubviewToFront:self.toolbar];
[player play];
}
else
{
[[TVOutManager sharedInstance] startVideo:URL];
ExternalVideoControlView* exView = [[ExternalVideoControlView alloc] initWithFrame:CGRectMake(0, 44, 1024, 724)];
exView.player = [TVOutManager sharedInstance].player;
[self.view addSubview:exView];
}