문제

Thanks to all for responding to the questions which I Posted.

I got one problem that is, While capturing the video in the iPhone, I don't know how to store the time period (duration) that I captured video with iPhone. Can any one solve my problem.

I am using the following code for capturing. -(void) RecordVideoWithCamera { printf("\n Hai I am in record vedio with camera -============"); [self startCameraPickerFromViewController:self usingDelegate:self]; }

  • (BOOL)startCameraPickerFromViewController:(UIViewController*)controller usingDelegate:(id)delegateObject
    {

    if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { UIImagePickerController *picker = [[[UIImagePickerController alloc] init]autorelease]; picker.sourceType = UIImagePickerControllerSourceTypeCamera; picker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie]; picker.delegate = self; picker.showsCameraControls=YES; picker.allowsEditing = NO; UIView *overlayView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; picker.cameraOverlayView = overlayView; [controller presentModalViewController:picker animated:YES]; } return YES;
    }

Thanking you, Madan Mohan.

도움이 되었습니까?

해결책

I think you should check CMTime struct.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top