Skip to content

Commit

Permalink
iOS の captureDevices も自作する
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Nov 1, 2023
1 parent 8ea7616 commit 9850b2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mac/mac_capturer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ - (void)capturer:(RTCVideoCapturer*)capturer
// return session.devices;
return [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
#else
return [RTCCameraVideoCapturer captureDevices];
AVCaptureDeviceDiscoverySession *session = [AVCaptureDeviceDiscoverySession
discoverySessionWithDeviceTypes:@[ AVCaptureDeviceTypeBuiltInWideAngleCamera ]
mediaType:AVMediaTypeVideo
position:AVCaptureDevicePositionUnspecified];
return session.devices;
# endif
}

Expand Down

0 comments on commit 9850b2b

Please sign in to comment.