5
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
NSURL *videoURL = [info objectForKey:UIImagePickerControllerMediaURL];
//get the videoURL
NSString *tempFilePath = [videoURL path];
if (UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(tempFilePath))
{
// Copy it to the camera roll.
UISaveVideoAtPathToSavedPhotosAlbum(tempFilePath, self, @selector(video:didFinishSavingWithError:contextInfo:), tempFilePath);
}
}
我使用UISaveVideoAtPathToSavedPhotosAlbum保存錄制的視頻。我想知道我保存錄制的視頻的專輯的絕對路徑。IOS如何能UISaveVideoAtPathToSavedPhotosAlbum返回保存的視頻路徑?
我怎麼能得到保存的路徑? UISaveVideoAtPathToSavedPhotosAlbum不返回任何。
並在回調函數video:didFinishSavingWithError:contextInfo:仍然沒有路徑信息。