[英]Movieplayercontroller using a m4v with two audio tracks
我需要在我的App中使用带有两个音频标记的m4v视频。 但是,当我播放视频时,它同时从两个音轨开始。 我需要使用设备的默认语言(默认为英语)加载音轨。
这是我的代码:
_moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [_moviePlayer shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationLandscapeLeft]; _moviePlayer.moviePlayer.movieSourceType = MPMovieSourceTypeFile; [self presentMoviePlayerViewControllerAnimated:_moviePlayer];
MPMoviePlayerController
以及包装的MPMoviePlayerViewController
不支持选择音轨。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.