2010-06-18 79 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

相关问题