react-native-webrtc 124.0.1 → 124.0.2

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.
@@ -31,4 +31,5 @@ android {
31
31
  dependencies {
32
32
  implementation 'com.facebook.react:react-native:+'
33
33
  api 'org.jitsi:webrtc:124.+'
34
+ implementation "androidx.core:core:1.7.0"
34
35
  }
@@ -102,6 +102,9 @@ public class WebRTCModule extends ReactContextBaseJavaModule {
102
102
  .setVideoDecoderFactory(decoderFactory)
103
103
  .createPeerConnectionFactory();
104
104
 
105
+ // PeerConnectionFactory now owns the adm native pointer, and we don't need it anymore.
106
+ adm.release();
107
+
105
108
  // Saving the encoder and decoder factories to get codec info later when needed.
106
109
  mVideoEncoderFactory = encoderFactory;
107
110
  mVideoDecoderFactory = decoderFactory;
@@ -116,14 +119,6 @@ public class WebRTCModule extends ReactContextBaseJavaModule {
116
119
  return "WebRTCModule";
117
120
  }
118
121
 
119
- @Override
120
- public void onCatalystInstanceDestroy() {
121
- if (mAudioDeviceModule != null) {
122
- mAudioDeviceModule.release();
123
- }
124
- super.onCatalystInstanceDestroy();
125
- }
126
-
127
122
  private PeerConnection getPeerConnection(int id) {
128
123
  PeerConnectionObserver pco = mPeerConnectionObservers.get(id);
129
124
  return (pco == null) ? null : pco.getPeerConnection();
@@ -2,6 +2,8 @@
2
2
  #import <objc/runtime.h>
3
3
 
4
4
  #import <React/RCTLog.h>
5
+ #import <React/RCTView.h>
6
+
5
7
  #import <WebRTC/RTCMediaStream.h>
6
8
  #if TARGET_OS_OSX
7
9
  #import <WebRTC/RTCMTLNSVideoView.h>
@@ -42,12 +44,7 @@ typedef NS_ENUM(NSInteger, RTCVideoViewObjectFit) {
42
44
  * Implements an equivalent of {@code HTMLVideoElement} i.e. Web's video
43
45
  * element.
44
46
  */
45
-
46
- #if TARGET_OS_OSX
47
- @interface RTCVideoView : NSView
48
- #else
49
- @interface RTCVideoView : UIView
50
- #endif
47
+ @interface RTCVideoView : RCTView
51
48
 
52
49
  /**
53
50
  * The indicator which determines whether this {@code RTCVideoView} is to mirror
@@ -252,11 +249,7 @@ typedef NS_ENUM(NSInteger, RTCVideoViewObjectFit) {
252
249
 
253
250
  RCT_EXPORT_MODULE()
254
251
 
255
- #if TARGET_OS_OSX
256
- - (NSView *)view {
257
- #else
258
- - (UIView *)view {
259
- #endif
252
+ - (RCTView *)view {
260
253
  RTCVideoView *v = [[RTCVideoView alloc] init];
261
254
  v.module = [self.bridge moduleForName:@"WebRTCModule"];
262
255
  v.clipsToBounds = YES;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-webrtc",
3
- "version": "124.0.1",
3
+ "version": "124.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/react-native-webrtc/react-native-webrtc.git"