In my app, I recorded the video & also displaying the thumbnail Image in iphone. It all works fine.
But my thumbnail image is not shows the video time length.
I got the code from following link:
//my code
NSURL *videoURL = [NSURL fileURLWithPath:url];
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
UIImage *thumbnail = [player thumbnailImageAtTime:1.0 timeOption:MPMovieTimeOptionNearestKeyFrame];
How can i solve this?