views:

28

answers:

0

Dear all,

I am doing some video related app. I am implementing the following.

1.- An existing Video is chosen from the camera roll using

picker=[[UIImagePickerController alloc]init];

2.- Then the video can be trimmed using the edition tool of the SDK.

picker.allowsEditing = YES;

3.- Video is processed with a proprietary algorithm

4.- Then Video is saved to camera roll using

NSString *videoPath=[theMovieURL path];
if(UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(videoPath)){
   UISaveVideoAtPathToSavedPhotosAlbum(videoPath,self,@selector(video:didFinishSavingWithError:contextInfo:),videoPath);    
}  

5.- In the workflow of my app it is possible to choose again the video resulting from steps 1 to 4. When I launch the camera roll again using

UIImagePickerController

I see the video I just produced previously in the thumbnails view of the camera roll with the correct video length as it could has been previously trimmed . However, when I tap this video and the edition tool of the SDK is shown I only get a black screen and there is no play button as it should normally be. If I tap the choose button the App crashes.

If I quit the App and start it again I can use the produced video without problems. The problem seems to be when I try to use it right after it was saved within the same app.

Did anybody experience something similar?

Thanks for the help