react-native-webrtc 1.100.0 → 1.100.1
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.
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Everyone is welcome to our [Discourse community](https://react-native-webrtc.dis
|
|
|
15
15
|
|
|
16
16
|
## WebRTC Revision
|
|
17
17
|
|
|
18
|
-
* Currently used revision: [
|
|
18
|
+
* Currently used revision: [M100](https://github.com/jitsi/webrtc/releases/tag/v100.0.0)
|
|
19
19
|
* Supported architectures
|
|
20
20
|
* Android: armeabi-v7a, arm64-v8a, x86, x86_64
|
|
21
21
|
* iOS: arm64, x86_64 (for bitcode support, run [this script](https://github.com/react-native-webrtc/react-native-webrtc/blob/master/tools/downloadBitcode.sh))
|
|
@@ -141,6 +141,13 @@ const NSUInteger kMaxReadLength = 10 * 1024;
|
|
|
141
141
|
return self;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
- (void)setConnection:(SocketConnection *)connection {
|
|
145
|
+
if (_connection != connection) {
|
|
146
|
+
[_connection close];
|
|
147
|
+
_connection = connection;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
144
151
|
- (void)startCaptureWithConnection:(SocketConnection *)connection {
|
|
145
152
|
_startTimeStampNs = -1;
|
|
146
153
|
|
|
@@ -444,6 +444,8 @@ RCT_EXPORT_METHOD(peerConnectionRestartIce:(nonnull NSNumber *)objectID)
|
|
|
444
444
|
NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
|
|
445
445
|
[s appendString:jsonString];
|
|
446
446
|
}
|
|
447
|
+
} else if ([statisticsValue isKindOfClass:[NSNumber class]]) {
|
|
448
|
+
[s appendString:[NSString stringWithFormat:@"%@", statisticsValue]];
|
|
447
449
|
} else {
|
|
448
450
|
[s appendString:@"\""];
|
|
449
451
|
[s appendString:[NSString stringWithFormat:@"%@", statisticsValue]];
|