Skip to content

Commit d34a1e6

Browse files
committed
ios: fail to create desktop stream on macOS
It's not supported.
1 parent e86b70c commit d34a1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RCTWebRTC/WebRTCModule+RTCMediaStream.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ - (RTCVideoTrack *)createVideoTrack:(NSDictionary *)constraints {
5757
}
5858

5959
- (RTCVideoTrack *)createScreenCaptureVideoTrack {
60-
#if TARGET_IPHONE_SIMULATOR
60+
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_OSX
6161
return nil;
6262
#endif
6363

0 commit comments

Comments
 (0)