We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93487cf commit a70eb2dCopy full SHA for a70eb2d
sdk/objc/components/capturer/RTCCameraVideoCapturer.m
@@ -488,7 +488,9 @@ - (void)updateDeviceCaptureFormat:(AVCaptureDeviceFormat *)format fps:(NSInteger
488
@"updateDeviceCaptureFormat must be called on the capture queue.");
489
@try {
490
_currentDevice.activeFormat = format;
491
- _currentDevice.activeVideoMinFrameDuration = CMTimeMake(1, fps);
+ if(![NSStringFromClass([_currentDevice class]) isEqualToString:@"AVCaptureDALDevice"]) {
492
+ _currentDevice.activeVideoMinFrameDuration = CMTimeMake(1, fps);
493
+ }
494
} @catch (NSException *exception) {
495
RTCLogError(@"Failed to set active format!\n User info:%@", exception.userInfo);
496
return;
0 commit comments