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: [M94](https://github.com/jitsi/webrtc/releases/tag/v94.0.0)
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))
@@ -35,6 +35,10 @@ NSString* const kRTCAppGroupIdentifier = @"RTCAppGroupIdentifier";
35
35
  return self;
36
36
  }
37
37
 
38
+ - (void)dealloc {
39
+ [self.capturer stopCapture];
40
+ }
41
+
38
42
  - (void)startCapture {
39
43
  if (!self.appGroupIdentifier) {
40
44
  return;
@@ -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]];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-webrtc",
3
- "version": "1.100.0",
3
+ "version": "1.100.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/react-native-webrtc/react-native-webrtc.git"