[英]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.