没有声音的iPad3视频

时间:2013-03-04 05:36:04

标签: ios xcode ipad

我有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];
}

1 个答案:

答案 0 :(得分:2)

只需关闭ipad静音模式按钮.....按钮左侧是ipad.check一次。然后重启你的app.Now音频会播放声音。