This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center
                            
                        
                    
                
                                6年前关闭。
            
                    
我有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];
}

最佳答案

只需关闭ipad静音模式按钮即可.....该按钮位于ipad的左侧。检查一次。然后重新启动应用程序。现在音频将随着声音播放。

关于ios - iPad3视频无声音,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15195211/

10-13 00:09