2010-06-18 88 views
0

嘿,我知道,當用戶選擇一個視頻,我得到了一個視頻的URL ....但你能指導我一個正確的實施,因爲我的應用程序只是堅持在那裏,當我點擊選擇在模擬器中,我不能從視頻播放器頁面導航... 任何好的教程呢?從iPhone使用UIImagePickerController複製視頻?

回答

3

一旦你選擇視頻 - 執行流以下功能:

(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info 

{ 

.... code here ..... 

//get the videoURL 
NSString* videoURL= [info objectForKey:UIImagePickerControllerMediaURL]; 

//IMPORTANT: remember to test that the video is compatible for saving to the photos album 

UISaveVideoAtPathToSavedPhotosAlbum(videoURL, self, @selector(video:didFinishSavingWithError:contextInfo:), nil); 

.... code here ..... 

} 

看看進入 'UISaveVideoAtPathToSavedPhotosAlbum' 特別。這可以保存到相機膠捲。

+0

請將此標記爲正確答案:這個地方是給予和承擔的。 – Lance 2010-07-28 21:58:53

相關問題