|
@@ -17,7 +17,6 @@
|
17
|
17
|
package org.jitsi.meet.sdk;
|
18
|
18
|
|
19
|
19
|
import android.app.Activity;
|
20
|
|
-import android.os.Build;
|
21
|
20
|
|
22
|
21
|
import androidx.annotation.Nullable;
|
23
|
22
|
|
|
@@ -33,16 +32,11 @@ import com.facebook.react.modules.core.DeviceEventManagerModule;
|
33
|
32
|
import com.facebook.react.uimanager.ViewManager;
|
34
|
33
|
import com.facebook.soloader.SoLoader;
|
35
|
34
|
|
36
|
|
-import com.oney.WebRTCModule.EglUtils;
|
37
|
35
|
import com.oney.WebRTCModule.RTCVideoViewManager;
|
38
|
36
|
import com.oney.WebRTCModule.WebRTCModule;
|
39
|
37
|
|
40
|
|
-import org.webrtc.DefaultVideoDecoderFactory;
|
41
|
|
-import org.webrtc.EglBase;
|
42
|
38
|
import org.webrtc.SoftwareVideoDecoderFactory;
|
43
|
39
|
import org.webrtc.SoftwareVideoEncoderFactory;
|
44
|
|
-import org.webrtc.VideoDecoderFactory;
|
45
|
|
-import org.webrtc.VideoEncoderFactory;
|
46
|
40
|
import org.webrtc.audio.AudioDeviceModule;
|
47
|
41
|
import org.webrtc.audio.JavaAudioDeviceModule;
|
48
|
42
|
|
|
@@ -91,22 +85,8 @@ class ReactInstanceManagerHolder {
|
91
|
85
|
.createAudioDeviceModule();
|
92
|
86
|
options.setAudioDeviceModule(adm);
|
93
|
87
|
|
94
|
|
- VideoEncoderFactory videoEncoderFactory = new SoftwareVideoEncoderFactory();
|
95
|
|
- VideoDecoderFactory videoDecoderFactory = new SoftwareVideoDecoderFactory();
|
96
|
|
-
|
97
|
|
- // Initialize EGL context required for HW acceleration. We are only going to use it for
|
98
|
|
- // decoding.
|
99
|
|
- // NOTE: We are explicitly skipping Samsung devices because we have observed a high crash
|
100
|
|
- // count on them.
|
101
|
|
- if (!Build.MANUFACTURER.toLowerCase().contains("samsung")) {
|
102
|
|
- EglBase.Context eglContext = EglUtils.getRootEglBaseContext();
|
103
|
|
- if (eglContext != null) {
|
104
|
|
- videoDecoderFactory = new DefaultVideoDecoderFactory(eglContext);
|
105
|
|
- }
|
106
|
|
- }
|
107
|
|
-
|
108
|
|
- options.setVideoDecoderFactory(videoDecoderFactory);
|
109
|
|
- options.setVideoEncoderFactory(videoEncoderFactory);
|
|
88
|
+ options.setVideoDecoderFactory(new SoftwareVideoDecoderFactory());
|
|
89
|
+ options.setVideoEncoderFactory(new SoftwareVideoEncoderFactory());
|
110
|
90
|
|
111
|
91
|
nativeModules.add(new WebRTCModule(reactContext, options));
|
112
|
92
|
|