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 92a336d commit f07435dCopy full SHA for f07435d
android/src/main/java/com/oney/WebRTCModule/GetUserMediaImpl.java
@@ -93,6 +93,12 @@ private VideoTrack createVideoTrack(ReadableMap constraints) {
93
EglBase.Context eglContext = EglUtils.getRootEglBaseContext();
94
SurfaceTextureHelper surfaceTextureHelper =
95
SurfaceTextureHelper.create("CaptureThread", eglContext);
96
+
97
+ if (surfaceTextureHelper == null) {
98
+ Log.d(TAG, "Error creating SurfaceTextureHelper");
99
+ return null;
100
+ }
101
102
VideoSource videoSource = pcFactory.createVideoSource(videoCapturer.isScreencast());
103
videoCapturer.initialize(surfaceTextureHelper, reactContext, videoSource.getCapturerObserver());
104
0 commit comments