ios - Video Too Long to Send -- But it isn't -
ios - Video Too Long to Send -- But it isn't -
i allowing capture of live video in app of set maximum duration of 30 seconds. when 30 seconds reached app correctly stops recording , gives message max beingness reached. good. however, @ bottom shows message says "video long send.. please select smaller clip video". of course of study isn't true , video sent fine. message confusing user (given incorrect) , 1 time again programmatically controlling video length. live video , not user has selected existing library. why message showing , there way rid of it?
-(void)imagefromcamera:(nsstring *)mediatype { self.mediapicker = [[uiimagepickercontroller alloc]init]; if ([mediatype isequaltostring:@"camera"] || [mediatype isequaltostring:@"video"]) self.mediapicker.sourcetype = uiimagepickercontrollersourcetypecamera; else self.mediapicker.sourcetype = uiimagepickercontrollersourcetypephotolibrary; if ([mediatype isequaltostring:@"video"]) { self.mediapicker.mediatypes = [[nsarray alloc]initwithobjects:(nsstring *)kuttypemovie, nil]; [self.mediapicker setvideomaximumduration:30.0f]; } self.mediapicker.delegate = self; self.mediapicker.allowsediting = yes; [self presentviewcontroller:self.mediapicker animated:yes completion:nil]; } ios objective-c xcode
Comments
Post a Comment