2012-09-08 90 views
1

我取的視頻網址從拖車的IMDB,如:播放IMDB視頻不能正常工作

http://video-http.media-imdb.com/[email protected]?Expires=1347051666&Signature=4OPreoHNu1wcEMX2UIkKYvnu1y7r9NG6qoLf5w1egm7D-5UVSZI6KAZkxX5BA9h7Zj88LZEEWowBbgdh2CC8Zdr2syj1IL4Ncew~rqgLvuBRkwbHyIJzag2CBXEblmAHkMR3NRoOxy93iUXMvZrNj2pnxuYjF9Bf9AODrBxmUdc_&Key-Pair-Id=APKAILW5I44IHKUN2DYA 

通過添加代碼的其餘部分:

moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL]; 
    [moviePlayerController.view setFrame:CGRectMake(0, 70, 320, 270)]; 
    [self.view addSubview:moviePlayerController.view]; 

我只得到這個錯誤(在simlator,沒有嘗試過在裝置):

Error getting audio input device sample rate 

問候 米爾扎

回答

1

嘗試婁代碼

NSString *url = [NSString stringWithFormat:@"Url"]; 

    mp = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:url]]; 

    [[mp moviePlayer] prepareToPlay]; 
    [[mp moviePlayer] setUseApplicationAudioSession:NO]; 
    [[mp moviePlayer] setShouldAutoplay:YES]; 
    [[mp moviePlayer] setControlStyle:2]; 
    [[mp moviePlayer] setRepeatMode:MPMovieRepeatModeOne]; 
    [self presentMoviePlayerViewControllerAnimated:mp]; 
+0

THX的答案,它仍然是相同的:錯誤獲取的音頻輸入設備採樣率:「OBJ!」 – mirzahat

相關問題