react-native-webrtc 1.92.2 → 1.94.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.
Files changed (44) hide show
  1. package/.prettierignore +9 -0
  2. package/.prettierrc.json +10 -0
  3. package/android/libs/.placeholder +0 -0
  4. package/android/src/main/java/com/oney/WebRTCModule/GetUserMediaImpl.java +0 -5
  5. package/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java +199 -255
  6. package/apple/.placeholder +0 -0
  7. package/ios/RCTWebRTC/VideoCaptureController.m +5 -3
  8. package/metro.config.js +3 -4
  9. package/metro.config.macos.js +7 -8
  10. package/package.json +20 -12
  11. package/react-native.config.js +5 -6
  12. package/src/EventEmitter.js +1 -1
  13. package/src/MediaDevices.js +6 -12
  14. package/src/MediaStream.js +120 -131
  15. package/src/MediaStreamError.js +8 -10
  16. package/src/MediaStreamErrorEvent.js +6 -7
  17. package/src/MediaStreamEvent.js +6 -7
  18. package/src/MediaStreamTrack.js +89 -103
  19. package/src/MediaStreamTrackEvent.js +6 -7
  20. package/src/MessageEvent.js +7 -8
  21. package/src/Permissions.js +26 -23
  22. package/src/RTCDataChannel.js +127 -145
  23. package/src/RTCDataChannelEvent.js +6 -7
  24. package/src/RTCEvent.js +5 -6
  25. package/src/RTCIceCandidate.js +15 -16
  26. package/src/RTCIceCandidateEvent.js +8 -9
  27. package/src/RTCPeerConnection.js +295 -325
  28. package/src/RTCSessionDescription.js +15 -16
  29. package/src/RTCUtil.js +56 -57
  30. package/src/RTCView.js +59 -69
  31. package/src/ScreenCapturePickerView.js +2 -5
  32. package/src/getDisplayMedia.js +7 -6
  33. package/src/getUserMedia.js +85 -85
  34. package/src/index.js +28 -34
  35. package/tools/build-webrtc.py +61 -49
  36. package/tools/downloadBitcode.sh +4 -16
  37. package/tools/downloadWebRTC.js +100 -0
  38. package/android/libs/libjingle_peerconnection.so.jar +0 -0
  39. package/android/libs/libwebrtc.jar +0 -0
  40. package/apple/WebRTC.xcframework.tgz +0 -0
  41. package/ios/RCTWebRTC.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  42. package/ios/RCTWebRTC.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  43. package/ios/RCTWebRTC.xcodeproj/project.xcworkspace/xcuserdata/saghul.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  44. package/ios/RCTWebRTC.xcodeproj/xcuserdata/saghul.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
package/src/RTCEvent.js CHANGED
@@ -1,9 +1,8 @@
1
- 'use strict';
2
1
 
3
2
  export default class RTCEvent {
4
- type: string;
5
- constructor(type, eventInitDict) {
6
- this.type = type.toString();
7
- Object.assign(this, eventInitDict);
8
- }
3
+ type: string;
4
+ constructor(type, eventInitDict) {
5
+ this.type = type.toString();
6
+ Object.assign(this, eventInitDict);
7
+ }
9
8
  }
@@ -1,21 +1,20 @@
1
- 'use strict';
2
1
 
3
2
  export default class RTCIceCandidate {
4
- candidate: string;
5
- sdpMLineIndex: number;
6
- sdpMid: string;
3
+ candidate: string;
4
+ sdpMLineIndex: number;
5
+ sdpMid: string;
7
6
 
8
- constructor(info) {
9
- this.candidate = info.candidate;
10
- this.sdpMLineIndex = info.sdpMLineIndex;
11
- this.sdpMid = info.sdpMid;
12
- }
7
+ constructor(info) {
8
+ this.candidate = info.candidate;
9
+ this.sdpMLineIndex = info.sdpMLineIndex;
10
+ this.sdpMid = info.sdpMid;
11
+ }
13
12
 
14
- toJSON() {
15
- return {
16
- candidate: this.candidate,
17
- sdpMLineIndex: this.sdpMLineIndex,
18
- sdpMid: this.sdpMid,
19
- };
20
- }
13
+ toJSON() {
14
+ return {
15
+ candidate: this.candidate,
16
+ sdpMLineIndex: this.sdpMLineIndex,
17
+ sdpMid: this.sdpMid
18
+ };
19
+ }
21
20
  }
@@ -1,16 +1,15 @@
1
- 'use strict';
2
1
 
3
2
  import type RTCIceCandidate from './RTCIceCandidate';
4
3
 
5
4
  export default class RTCIceCandidateEvent {
6
- type: string;
7
- candidate: RTCIceCandidate;
8
- constructor(type, eventInitDict) {
9
- this.type = type.toString();
5
+ type: string;
6
+ candidate: RTCIceCandidate;
7
+ constructor(type, eventInitDict) {
8
+ this.type = type.toString();
10
9
 
11
- this.candidate = null;
12
- if (eventInitDict && eventInitDict.candidate) {
13
- this.candidate = eventInitDict.candidate;
10
+ this.candidate = null;
11
+ if (eventInitDict && eventInitDict.candidate) {
12
+ this.candidate = eventInitDict.candidate;
13
+ }
14
14
  }
15
- }
16
15
  }