Skip to content

Commit

Permalink
ios: update dummy framerate value
Browse files Browse the repository at this point in the history
  • Loading branch information
davidliu committed Apr 13, 2023
1 parent 220b8fd commit 6e20800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RCTWebRTC/WebRTCModule+RTCMediaStream.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ - (NSArray *)createMediaStream:(NSArray<RTCMediaStreamTrack *> *)tracks {
VideoCaptureController *vcc = (VideoCaptureController *)videoTrack.captureController;
AVCaptureDeviceFormat *format = vcc.selectedFormat;
CMVideoDimensions dimensions = CMVideoFormatDescriptionGetDimensions(format.formatDescription);
settings = @{@"height" : @(dimensions.height), @"width" : @(dimensions.width), @"frameRate" : @(3)};
settings = @{@"height" : @(dimensions.height), @"width" : @(dimensions.width), @"frameRate" : @(30)};
}
}

Expand Down Expand Up @@ -218,7 +218,7 @@ - (RTCVideoTrack *)createScreenCaptureVideoTrack {
VideoCaptureController *vcc = (VideoCaptureController *)videoTrack.captureController;
AVCaptureDeviceFormat *format = vcc.selectedFormat;
CMVideoDimensions dimensions = CMVideoFormatDescriptionGetDimensions(format.formatDescription);
settings = @{@"height" : @(dimensions.height), @"width" : @(dimensions.width), @"frameRate" : @(3)};
settings = @{@"height" : @(dimensions.height), @"width" : @(dimensions.width), @"frameRate" : @(30)};
}

[tracks addObject:@{
Expand Down

0 comments on commit 6e20800

Please sign in to comment.