的iOS 5.1,這裏是代碼:的MPMoviePlayerController給了我黑色的空視圖,沒有視頻播放
MPMoviePlayerController *player =
[[MPMoviePlayerController alloc] initWithContentURL: [NSURL URLWithString:@"map.mp4"]];
[player prepareToPlay];
[player.view setFrame: self.view.bounds]; // player's frame must match parent's
[self.view addSubview: player.view];
// ...
[player play];
其實
,這僅僅是一樣的蘋果基準說,但是當我點擊按鈕使用此功能,只有一個黑色的Rectangle呆在那裏,沒有視頻播放,沒有聲音發生,沒有暗戀,所以我想知道如何使這項工作
我的代碼工作與否? – Dinesh