2010-08-17 68 views
1

我使用的MPMoviePlayerController播放電影:播放視頻適用於iPhone 4,但不能在iPhone 3G

STVideo *mySTVideo; 
    mySTVideo = [items objectAtIndex:indexPath.row]; 

    moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:mySTVideo.video_url]]; 

    moviePlayerViewController.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"st-screen.png"]]; 
    [self presentMoviePlayerViewControllerAnimated:moviePlayerViewController]; 

    [moviePlayerViewController release]; 

    [tableView deselectRowAtIndexPath:indexPath animated:YES]; 

這對iPhone 4的偉大工程,但在iPhone 3G,它顯示的視圖,然後自動解除它。爲什麼?

+0

你能否檢查你的電影的編碼?我認爲3g不支持.mov和.mp4 關心! – Siegfried 2011-12-07 18:11:08

回答

2

我有這個完全相同的問題,還沒有找到解決方案。有人在蘋果論壇上發起了一個關於此的帖子,並且我在那裏發佈了我的代碼(非常類似於你的代碼)。 https://devforums.apple.com/message/278621

我也試圖打開使用UIWebView(加載它自己的電影播放器​​)。與以前相同 - 它適用於iPhone 4和3GS,但不適用於3G。

相關問題