簡體   English   中英

Movieplayercontroller使用帶有兩個音軌的m4v

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

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM