react-native-webrtc 1.94.2 → 1.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,6 +98,7 @@ public class WebRTCModule extends ReactContextBaseJavaModule {
|
|
|
98
98
|
|
|
99
99
|
PeerConnectionFactory.initialize(
|
|
100
100
|
PeerConnectionFactory.InitializationOptions.builder(reactContext)
|
|
101
|
+
.setFieldTrials("WebRTC-DataChannel-Dcsctp/Enabled/")
|
|
101
102
|
.setNativeLibraryLoader(new LibraryLoader())
|
|
102
103
|
.setInjectableLogger(injectableLogger, loggingSeverity)
|
|
103
104
|
.createInitializationOptions());
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
#import <WebRTC/RTCDefaultVideoDecoderFactory.h>
|
|
17
17
|
#import <WebRTC/RTCDefaultVideoEncoderFactory.h>
|
|
18
|
+
#import <WebRTC/RTCFieldTrials.h>
|
|
18
19
|
|
|
19
20
|
#import "WebRTCModule.h"
|
|
20
21
|
#import "WebRTCModule+RTCPeerConnection.h"
|
|
@@ -56,6 +57,9 @@
|
|
|
56
57
|
{
|
|
57
58
|
self = [super init];
|
|
58
59
|
if (self) {
|
|
60
|
+
NSDictionary *fieldTrials = @{@"WebRTC-DataChannel-Dcsctp": @"Enabled"};
|
|
61
|
+
RTCInitFieldTrialDictionary(fieldTrials);
|
|
62
|
+
|
|
59
63
|
if (encoderFactory == nil) {
|
|
60
64
|
encoderFactory = [[RTCDefaultVideoEncoderFactory alloc] init];
|
|
61
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-webrtc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.98.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/react-native-webrtc/react-native-webrtc.git"
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"**/*": "prettier --write --ignore-unknown"
|
|
42
42
|
},
|
|
43
43
|
"webrtc-builds": {
|
|
44
|
-
"android": "https://github.com/jitsi/webrtc/releases/download/
|
|
45
|
-
"ios": "https://github.com/jitsi/webrtc/releases/download/
|
|
46
|
-
"ios-bitcode": "https://github.com/jitsi/webrtc/releases/download/
|
|
44
|
+
"android": "https://github.com/jitsi/webrtc/releases/download/v98.0.0/android-webrtc.tgz",
|
|
45
|
+
"ios": "https://github.com/jitsi/webrtc/releases/download/v98.0.0/WebRTC.xcframework.tgz",
|
|
46
|
+
"ios-bitcode": "https://github.com/jitsi/webrtc/releases/download/v98.0.0/WebRTC.xcframework-bitcode.tgz"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/tools/build-webrtc.py
CHANGED
|
@@ -37,12 +37,17 @@ def build_gn_args(platform_args):
|
|
|
37
37
|
GN_COMMON_ARGS = [
|
|
38
38
|
'is_component_build=false',
|
|
39
39
|
'rtc_libvpx_build_vp9=true',
|
|
40
|
+
'rtc_build_dcsctp=true',
|
|
41
|
+
'rtc_build_usrsctp=false',
|
|
42
|
+
'rtc_enable_protobuf=false',
|
|
43
|
+
'rtc_include_tests=false',
|
|
40
44
|
'is_debug=%s',
|
|
41
45
|
'target_cpu="%s"'
|
|
42
46
|
]
|
|
43
47
|
|
|
44
48
|
_GN_APPLE_COMMON = [
|
|
45
|
-
'enable_dsyms=
|
|
49
|
+
'enable_dsyms=false',
|
|
50
|
+
'rtc_enable_symbol_export=false',
|
|
46
51
|
'rtc_enable_objc_symbol_export=true',
|
|
47
52
|
'rtc_include_tests=false'
|
|
48
53
|
]
|
|
@@ -51,15 +56,14 @@ _GN_IOS_ARGS = [
|
|
|
51
56
|
'enable_ios_bitcode=true',
|
|
52
57
|
'ios_deployment_target="12.0"',
|
|
53
58
|
'ios_enable_code_signing=false',
|
|
59
|
+
'use_lld=false',
|
|
54
60
|
'target_os="ios"',
|
|
55
|
-
'use_xcode_clang=true',
|
|
56
61
|
'target_environment="%s"'
|
|
57
62
|
]
|
|
58
63
|
GN_IOS_ARGS = build_gn_args(_GN_APPLE_COMMON + _GN_IOS_ARGS)
|
|
59
64
|
|
|
60
65
|
_GN_MACOS_ARGS = [
|
|
61
|
-
'target_os="mac"'
|
|
62
|
-
'use_xcode_clang=false'
|
|
66
|
+
'target_os="mac"'
|
|
63
67
|
]
|
|
64
68
|
GN_MACOS_ARGS = build_gn_args(_GN_APPLE_COMMON + _GN_MACOS_ARGS)
|
|
65
69
|
|