我有我的保管箱帳戶mp4文件,當我在我的iphone上播放他們,他們正確地適應使用Apple的HTTP直播流。Mimic Dropbox應用程序視頻流 - HTTP直播流直接低谷Mp4
我想在我自己的應用程序上做同樣的事情,但無法讓它正常工作。我試過從Dropbox和amazon aws鏈接。
我在幾個地方看過我們必須鏈接到播放列表文件m3u8
。但我的文件是mp4
,它在Dropbox自己的應用程序上正常工作。
任何幫助將不勝感激。
下面的代碼:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidFinish)
name:MPMoviePlayerPlaybackDidFinishNotification
object:self.player.moviePlayer];
NSURL *url = [NSURL URLWithString:@"https://s3.amazonaws.com/modlr_backups/CANELEIRA+4+APOIOS+BI-ARTICULADA.mp4"];
self.player = [[MPMoviePlayerViewController alloc] init];
self.player.moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
[self.player.moviePlayer setContentURL:url];
[self presentMoviePlayerViewControllerAnimated:self.player];
的Dropbox將視頻轉碼你,當你播放視頻。如果你想模仿這個,你需要先做自己的代碼轉換。 – smarx