Hi Max I had tried the method as you had provided, but its not opening the camera
Here is my implementation
// Setting media constraint
- (FPWCSApi2MediaConstraints *)toMediaConstraints {
FPWCSApi2MediaConstraints *ret = [[FPWCSApi2MediaConstraintsalloc] init];
FPWCSApi2AudioConstraints *audio = [[FPWCSApi2AudioConstraintsalloc] init];
audio.bitrate = 500;
ret.audio = audio;
FPWCSApi2VideoConstraints *video = [[FPWCSApi2VideoConstraintsalloc] init];
video.minWidth = video.maxWidth = self.screenWidth;
video.minHeight = video.maxHeight = self.screenHeight;
video.minFrameRate = 500;
video.maxFrameRate = 500;
video.bitrate = 500;
ret.video = video;
return ret;
}
===
// Applying the method
NSError * errorToShowPreview = nil;
[FPWCSApi2getMediaAccess:[selftoMediaConstraints] display:self.videoViewLocalerror:&errorToShowPreview];
NSLog(@"error in showing default camera %@", errorToShowPreview.localizedDescription);
// I am getting errorToShowPreview = null
// error in showing default camera (null)