react-native-webrtc 111.0.6 → 118.0.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 (212) hide show
  1. package/android/build.gradle +6 -1
  2. package/android/src/main/java/com/oney/WebRTCModule/SerializeUtils.java +34 -5
  3. package/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java +85 -16
  4. package/ios/RCTWebRTC/SerializeUtils.h +3 -0
  5. package/ios/RCTWebRTC/SerializeUtils.m +42 -7
  6. package/ios/RCTWebRTC/WebRTCModule+Transceivers.m +89 -10
  7. package/lib/commonjs/EventEmitter.js.map +1 -1
  8. package/lib/commonjs/Logger.js +8 -2
  9. package/lib/commonjs/Logger.js.map +1 -1
  10. package/lib/commonjs/MediaDevices.js.map +1 -1
  11. package/lib/commonjs/MediaStream.js +4 -2
  12. package/lib/commonjs/MediaStream.js.map +1 -1
  13. package/lib/commonjs/MediaStreamError.js +4 -0
  14. package/lib/commonjs/MediaStreamError.js.map +1 -1
  15. package/lib/commonjs/MediaStreamErrorEvent.js +3 -0
  16. package/lib/commonjs/MediaStreamErrorEvent.js.map +1 -1
  17. package/lib/commonjs/MediaStreamTrack.js +11 -1
  18. package/lib/commonjs/MediaStreamTrack.js.map +1 -1
  19. package/lib/commonjs/MediaStreamTrackEvent.js +2 -0
  20. package/lib/commonjs/MediaStreamTrackEvent.js.map +1 -1
  21. package/lib/commonjs/MessageEvent.js +2 -0
  22. package/lib/commonjs/MessageEvent.js.map +1 -1
  23. package/lib/commonjs/Permissions.js +10 -9
  24. package/lib/commonjs/Permissions.js.map +1 -1
  25. package/lib/commonjs/RTCDataChannel.js +16 -2
  26. package/lib/commonjs/RTCDataChannel.js.map +1 -1
  27. package/lib/commonjs/RTCDataChannelEvent.js +2 -0
  28. package/lib/commonjs/RTCDataChannelEvent.js.map +1 -1
  29. package/lib/commonjs/RTCErrorEvent.js +3 -0
  30. package/lib/commonjs/RTCErrorEvent.js.map +1 -1
  31. package/lib/commonjs/RTCIceCandidate.js +4 -0
  32. package/lib/commonjs/RTCIceCandidate.js.map +1 -1
  33. package/lib/commonjs/RTCIceCandidateEvent.js +4 -1
  34. package/lib/commonjs/RTCIceCandidateEvent.js.map +1 -1
  35. package/lib/commonjs/RTCPeerConnection.js +39 -9
  36. package/lib/commonjs/RTCPeerConnection.js.map +1 -1
  37. package/lib/commonjs/RTCRtcpParameters.js +3 -0
  38. package/lib/commonjs/RTCRtcpParameters.js.map +1 -1
  39. package/lib/commonjs/RTCRtpCapabilities.js +4 -52
  40. package/lib/commonjs/RTCRtpCapabilities.js.map +1 -1
  41. package/lib/commonjs/RTCRtpCodecCapability.js +2 -0
  42. package/lib/commonjs/RTCRtpCodecCapability.js.map +1 -1
  43. package/lib/commonjs/RTCRtpCodecParameters.js +6 -0
  44. package/lib/commonjs/RTCRtpCodecParameters.js.map +1 -1
  45. package/lib/commonjs/RTCRtpEncodingParameters.js +11 -4
  46. package/lib/commonjs/RTCRtpEncodingParameters.js.map +1 -1
  47. package/lib/commonjs/RTCRtpHeaderExtension.js +4 -0
  48. package/lib/commonjs/RTCRtpHeaderExtension.js.map +1 -1
  49. package/lib/commonjs/RTCRtpParameters.js +4 -2
  50. package/lib/commonjs/RTCRtpParameters.js.map +1 -1
  51. package/lib/commonjs/RTCRtpReceiveParameters.js.map +1 -1
  52. package/lib/commonjs/RTCRtpReceiver.js +6 -9
  53. package/lib/commonjs/RTCRtpReceiver.js.map +1 -1
  54. package/lib/commonjs/RTCRtpSendParameters.js +4 -0
  55. package/lib/commonjs/RTCRtpSendParameters.js.map +1 -1
  56. package/lib/commonjs/RTCRtpSender.js +6 -9
  57. package/lib/commonjs/RTCRtpSender.js.map +1 -1
  58. package/lib/commonjs/RTCRtpTransceiver.js +14 -3
  59. package/lib/commonjs/RTCRtpTransceiver.js.map +1 -1
  60. package/lib/commonjs/RTCSessionDescription.js +3 -0
  61. package/lib/commonjs/RTCSessionDescription.js.map +1 -1
  62. package/lib/commonjs/RTCTrackEvent.js +5 -1
  63. package/lib/commonjs/RTCTrackEvent.js.map +1 -1
  64. package/lib/commonjs/RTCUtil.js.map +1 -1
  65. package/lib/commonjs/RTCView.js.map +1 -1
  66. package/lib/commonjs/ScreenCapturePickerView.js.map +1 -1
  67. package/lib/commonjs/getDisplayMedia.js.map +1 -1
  68. package/lib/commonjs/getUserMedia.js.map +1 -1
  69. package/lib/commonjs/index.js.map +1 -1
  70. package/lib/module/EventEmitter.js.map +1 -1
  71. package/lib/module/Logger.js +8 -2
  72. package/lib/module/Logger.js.map +1 -1
  73. package/lib/module/MediaDevices.js.map +1 -1
  74. package/lib/module/MediaStream.js +4 -2
  75. package/lib/module/MediaStream.js.map +1 -1
  76. package/lib/module/MediaStreamError.js +4 -0
  77. package/lib/module/MediaStreamError.js.map +1 -1
  78. package/lib/module/MediaStreamErrorEvent.js +3 -0
  79. package/lib/module/MediaStreamErrorEvent.js.map +1 -1
  80. package/lib/module/MediaStreamTrack.js +11 -1
  81. package/lib/module/MediaStreamTrack.js.map +1 -1
  82. package/lib/module/MediaStreamTrackEvent.js +2 -0
  83. package/lib/module/MediaStreamTrackEvent.js.map +1 -1
  84. package/lib/module/MessageEvent.js +2 -0
  85. package/lib/module/MessageEvent.js.map +1 -1
  86. package/lib/module/Permissions.js +10 -9
  87. package/lib/module/Permissions.js.map +1 -1
  88. package/lib/module/RTCDataChannel.js +16 -2
  89. package/lib/module/RTCDataChannel.js.map +1 -1
  90. package/lib/module/RTCDataChannelEvent.js +2 -0
  91. package/lib/module/RTCDataChannelEvent.js.map +1 -1
  92. package/lib/module/RTCErrorEvent.js +3 -0
  93. package/lib/module/RTCErrorEvent.js.map +1 -1
  94. package/lib/module/RTCIceCandidate.js +4 -0
  95. package/lib/module/RTCIceCandidate.js.map +1 -1
  96. package/lib/module/RTCIceCandidateEvent.js +4 -1
  97. package/lib/module/RTCIceCandidateEvent.js.map +1 -1
  98. package/lib/module/RTCPeerConnection.js +39 -9
  99. package/lib/module/RTCPeerConnection.js.map +1 -1
  100. package/lib/module/RTCRtcpParameters.js +3 -0
  101. package/lib/module/RTCRtcpParameters.js.map +1 -1
  102. package/lib/module/RTCRtpCapabilities.js +3 -47
  103. package/lib/module/RTCRtpCapabilities.js.map +1 -1
  104. package/lib/module/RTCRtpCodecCapability.js +2 -0
  105. package/lib/module/RTCRtpCodecCapability.js.map +1 -1
  106. package/lib/module/RTCRtpCodecParameters.js +6 -0
  107. package/lib/module/RTCRtpCodecParameters.js.map +1 -1
  108. package/lib/module/RTCRtpEncodingParameters.js +11 -4
  109. package/lib/module/RTCRtpEncodingParameters.js.map +1 -1
  110. package/lib/module/RTCRtpHeaderExtension.js +4 -0
  111. package/lib/module/RTCRtpHeaderExtension.js.map +1 -1
  112. package/lib/module/RTCRtpParameters.js +4 -2
  113. package/lib/module/RTCRtpParameters.js.map +1 -1
  114. package/lib/module/RTCRtpReceiveParameters.js.map +1 -1
  115. package/lib/module/RTCRtpReceiver.js +6 -9
  116. package/lib/module/RTCRtpReceiver.js.map +1 -1
  117. package/lib/module/RTCRtpSendParameters.js +4 -0
  118. package/lib/module/RTCRtpSendParameters.js.map +1 -1
  119. package/lib/module/RTCRtpSender.js +6 -9
  120. package/lib/module/RTCRtpSender.js.map +1 -1
  121. package/lib/module/RTCRtpTransceiver.js +14 -3
  122. package/lib/module/RTCRtpTransceiver.js.map +1 -1
  123. package/lib/module/RTCSessionDescription.js +3 -0
  124. package/lib/module/RTCSessionDescription.js.map +1 -1
  125. package/lib/module/RTCTrackEvent.js +5 -1
  126. package/lib/module/RTCTrackEvent.js.map +1 -1
  127. package/lib/module/RTCUtil.js.map +1 -1
  128. package/lib/module/RTCView.js.map +1 -1
  129. package/lib/module/ScreenCapturePickerView.js.map +1 -1
  130. package/lib/module/getDisplayMedia.js.map +1 -1
  131. package/lib/module/getUserMedia.js.map +1 -1
  132. package/lib/module/index.js.map +1 -1
  133. package/lib/typescript/EventEmitter.d.ts +2 -3
  134. package/lib/typescript/Logger.d.ts +0 -1
  135. package/lib/typescript/MediaDevices.d.ts +1 -2
  136. package/lib/typescript/MediaStream.d.ts +1 -2
  137. package/lib/typescript/MediaStreamError.d.ts +0 -1
  138. package/lib/typescript/MediaStreamErrorEvent.d.ts +0 -1
  139. package/lib/typescript/MediaStreamTrack.d.ts +3 -4
  140. package/lib/typescript/MediaStreamTrackEvent.d.ts +1 -2
  141. package/lib/typescript/MessageEvent.d.ts +2 -3
  142. package/lib/typescript/Permissions.d.ts +1 -2
  143. package/lib/typescript/RTCDataChannel.d.ts +2 -3
  144. package/lib/typescript/RTCDataChannelEvent.d.ts +1 -2
  145. package/lib/typescript/RTCErrorEvent.d.ts +1 -2
  146. package/lib/typescript/RTCIceCandidate.d.ts +0 -1
  147. package/lib/typescript/RTCIceCandidateEvent.d.ts +1 -2
  148. package/lib/typescript/RTCPeerConnection.d.ts +20 -8
  149. package/lib/typescript/RTCRtcpParameters.d.ts +0 -1
  150. package/lib/typescript/RTCRtpCapabilities.d.ts +1 -12
  151. package/lib/typescript/RTCRtpCodecCapability.d.ts +0 -1
  152. package/lib/typescript/RTCRtpCodecParameters.d.ts +0 -1
  153. package/lib/typescript/RTCRtpEncodingParameters.d.ts +0 -1
  154. package/lib/typescript/RTCRtpHeaderExtension.d.ts +0 -1
  155. package/lib/typescript/RTCRtpParameters.d.ts +0 -1
  156. package/lib/typescript/RTCRtpReceiveParameters.d.ts +0 -1
  157. package/lib/typescript/RTCRtpReceiver.d.ts +0 -1
  158. package/lib/typescript/RTCRtpSendParameters.d.ts +1 -2
  159. package/lib/typescript/RTCRtpSender.d.ts +0 -1
  160. package/lib/typescript/RTCRtpTransceiver.d.ts +2 -1
  161. package/lib/typescript/RTCSessionDescription.d.ts +0 -1
  162. package/lib/typescript/RTCTrackEvent.d.ts +1 -2
  163. package/lib/typescript/RTCUtil.d.ts +0 -1
  164. package/lib/typescript/RTCView.d.ts +1 -2
  165. package/lib/typescript/ScreenCapturePickerView.d.ts +0 -1
  166. package/lib/typescript/getDisplayMedia.d.ts +0 -1
  167. package/lib/typescript/getUserMedia.d.ts +0 -1
  168. package/lib/typescript/index.d.ts +0 -1
  169. package/package.json +1 -1
  170. package/react-native-webrtc.podspec +1 -1
  171. package/src/RTCPeerConnection.ts +42 -1
  172. package/src/RTCRtpCapabilities.ts +1 -50
  173. package/src/RTCRtpReceiver.ts +2 -10
  174. package/src/RTCRtpSender.ts +2 -10
  175. package/src/RTCRtpTransceiver.ts +9 -0
  176. package/src/RTCView.ts +1 -1
  177. package/lib/typescript/EventEmitter.d.ts.map +0 -1
  178. package/lib/typescript/Logger.d.ts.map +0 -1
  179. package/lib/typescript/MediaDevices.d.ts.map +0 -1
  180. package/lib/typescript/MediaStream.d.ts.map +0 -1
  181. package/lib/typescript/MediaStreamError.d.ts.map +0 -1
  182. package/lib/typescript/MediaStreamErrorEvent.d.ts.map +0 -1
  183. package/lib/typescript/MediaStreamTrack.d.ts.map +0 -1
  184. package/lib/typescript/MediaStreamTrackEvent.d.ts.map +0 -1
  185. package/lib/typescript/MessageEvent.d.ts.map +0 -1
  186. package/lib/typescript/Permissions.d.ts.map +0 -1
  187. package/lib/typescript/RTCDataChannel.d.ts.map +0 -1
  188. package/lib/typescript/RTCDataChannelEvent.d.ts.map +0 -1
  189. package/lib/typescript/RTCErrorEvent.d.ts.map +0 -1
  190. package/lib/typescript/RTCIceCandidate.d.ts.map +0 -1
  191. package/lib/typescript/RTCIceCandidateEvent.d.ts.map +0 -1
  192. package/lib/typescript/RTCPeerConnection.d.ts.map +0 -1
  193. package/lib/typescript/RTCRtcpParameters.d.ts.map +0 -1
  194. package/lib/typescript/RTCRtpCapabilities.d.ts.map +0 -1
  195. package/lib/typescript/RTCRtpCodecCapability.d.ts.map +0 -1
  196. package/lib/typescript/RTCRtpCodecParameters.d.ts.map +0 -1
  197. package/lib/typescript/RTCRtpEncodingParameters.d.ts.map +0 -1
  198. package/lib/typescript/RTCRtpHeaderExtension.d.ts.map +0 -1
  199. package/lib/typescript/RTCRtpParameters.d.ts.map +0 -1
  200. package/lib/typescript/RTCRtpReceiveParameters.d.ts.map +0 -1
  201. package/lib/typescript/RTCRtpReceiver.d.ts.map +0 -1
  202. package/lib/typescript/RTCRtpSendParameters.d.ts.map +0 -1
  203. package/lib/typescript/RTCRtpSender.d.ts.map +0 -1
  204. package/lib/typescript/RTCRtpTransceiver.d.ts.map +0 -1
  205. package/lib/typescript/RTCSessionDescription.d.ts.map +0 -1
  206. package/lib/typescript/RTCTrackEvent.d.ts.map +0 -1
  207. package/lib/typescript/RTCUtil.d.ts.map +0 -1
  208. package/lib/typescript/RTCView.d.ts.map +0 -1
  209. package/lib/typescript/ScreenCapturePickerView.d.ts.map +0 -1
  210. package/lib/typescript/getDisplayMedia.d.ts.map +0 -1
  211. package/lib/typescript/getUserMedia.d.ts.map +0 -1
  212. package/lib/typescript/index.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { EventTarget, Event } from 'event-target-shim';
2
- type MediaStreamTrackState = 'live' | 'ended';
3
- export type MediaStreamTrackInfo = {
2
+ declare type MediaStreamTrackState = 'live' | 'ended';
3
+ export declare type MediaStreamTrackInfo = {
4
4
  id: string;
5
5
  kind: string;
6
6
  remote: boolean;
@@ -10,7 +10,7 @@ export type MediaStreamTrackInfo = {
10
10
  peerConnectionId: number;
11
11
  readyState: MediaStreamTrackState;
12
12
  };
13
- type MediaStreamTrackEventMap = {
13
+ declare type MediaStreamTrackEventMap = {
14
14
  ended: Event<'ended'>;
15
15
  mute: Event<'mute'>;
16
16
  unmute: Event<'unmute'>;
@@ -63,4 +63,3 @@ export default class MediaStreamTrack extends EventTarget<MediaStreamTrackEventM
63
63
  release(): void;
64
64
  }
65
65
  export {};
66
- //# sourceMappingURL=MediaStreamTrack.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Event } from 'event-target-shim';
2
2
  import type MediaStreamTrack from './MediaStreamTrack';
3
- type MEDIA_STREAM_EVENTS = 'addtrack' | 'removetrack';
3
+ declare type MEDIA_STREAM_EVENTS = 'addtrack' | 'removetrack';
4
4
  interface IMediaStreamTrackEventInitDict extends Event.EventInit {
5
5
  track: MediaStreamTrack;
6
6
  }
@@ -17,4 +17,3 @@ export default class MediaStreamTrackEvent<TEventType extends MEDIA_STREAM_EVENT
17
17
  constructor(type: TEventType, eventInitDict: IMediaStreamTrackEventInitDict);
18
18
  }
19
19
  export {};
20
- //# sourceMappingURL=MediaStreamTrackEvent.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react-native" />
2
2
  import { Event } from 'event-target-shim';
3
- export type MessageEventData = string | ArrayBuffer | Blob;
4
- type MESSAGE_EVENTS = 'message' | 'messageerror';
3
+ export declare type MessageEventData = string | ArrayBuffer | Blob;
4
+ declare type MESSAGE_EVENTS = 'message' | 'messageerror';
5
5
  interface IMessageEventInitDict extends Event.EventInit {
6
6
  data: MessageEventData;
7
7
  }
@@ -19,4 +19,3 @@ export default class MessageEvent<TEventType extends MESSAGE_EVENTS> extends Eve
19
19
  constructor(type: TEventType, eventInitDict: IMessageEventInitDict);
20
20
  }
21
21
  export {};
22
- //# sourceMappingURL=MessageEvent.d.ts.map
@@ -2,7 +2,7 @@ import { Permission } from 'react-native';
2
2
  /**
3
3
  * Type declaration for a permissions descriptor.
4
4
  */
5
- type PermissionDescriptor = {
5
+ declare type PermissionDescriptor = {
6
6
  name: string;
7
7
  };
8
8
  /**
@@ -53,4 +53,3 @@ declare class Permissions {
53
53
  }
54
54
  declare const _default: Permissions;
55
55
  export default _default;
56
- //# sourceMappingURL=Permissions.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { EventTarget } from 'event-target-shim';
2
2
  import MessageEvent from './MessageEvent';
3
3
  import RTCDataChannelEvent from './RTCDataChannelEvent';
4
- type RTCDataChannelState = 'connecting' | 'open' | 'closing' | 'closed';
5
- type DataChannelEventMap = {
4
+ declare type RTCDataChannelState = 'connecting' | 'open' | 'closing' | 'closed';
5
+ declare type DataChannelEventMap = {
6
6
  bufferedamountlow: RTCDataChannelEvent<'bufferedamountlow'>;
7
7
  close: RTCDataChannelEvent<'close'>;
8
8
  closing: RTCDataChannelEvent<'closing'>;
@@ -41,4 +41,3 @@ export default class RTCDataChannel extends EventTarget<DataChannelEventMap> {
41
41
  _registerEvents(): void;
42
42
  }
43
43
  export {};
44
- //# sourceMappingURL=RTCDataChannel.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Event } from 'event-target-shim';
2
2
  import type RTCDataChannel from './RTCDataChannel';
3
- type DATA_CHANNEL_EVENTS = 'open' | 'message' | 'bufferedamountlow' | 'closing' | 'close' | 'error' | 'datachannel';
3
+ declare type DATA_CHANNEL_EVENTS = 'open' | 'message' | 'bufferedamountlow' | 'closing' | 'close' | 'error' | 'datachannel';
4
4
  interface IRTCDataChannelEventInitDict extends Event.EventInit {
5
5
  channel: RTCDataChannel;
6
6
  }
@@ -17,4 +17,3 @@ export default class RTCDataChannelEvent<TEventType extends DATA_CHANNEL_EVENTS>
17
17
  constructor(type: TEventType, eventInitDict: IRTCDataChannelEventInitDict);
18
18
  }
19
19
  export {};
20
- //# sourceMappingURL=RTCDataChannelEvent.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { Event } from 'event-target-shim';
2
- type RTCPeerConnectionErrorFunc = 'addTransceiver' | 'getTransceivers' | 'addTrack' | 'removeTrack';
2
+ declare type RTCPeerConnectionErrorFunc = 'addTransceiver' | 'getTransceivers' | 'addTrack' | 'removeTrack';
3
3
  /**
4
4
  * @brief This class Represents internal error happening on the native side as
5
5
  * part of asynchronous invocations to synchronous web APIs.
@@ -10,4 +10,3 @@ export default class RTCErrorEvent<TEventType extends RTCPeerConnectionErrorFunc
10
10
  constructor(type: TEventType, func: RTCPeerConnectionErrorFunc, message: string);
11
11
  }
12
12
  export {};
13
- //# sourceMappingURL=RTCErrorEvent.d.ts.map
@@ -15,4 +15,3 @@ export default class RTCIceCandidate {
15
15
  };
16
16
  }
17
17
  export {};
18
- //# sourceMappingURL=RTCIceCandidate.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Event } from 'event-target-shim';
2
2
  import type RTCIceCandidate from './RTCIceCandidate';
3
- type RTC_ICECANDIDATE_EVENTS = 'icecandidate' | 'icecandidateerror';
3
+ declare type RTC_ICECANDIDATE_EVENTS = 'icecandidate' | 'icecandidateerror';
4
4
  interface IRTCDataChannelEventInitDict extends Event.EventInit {
5
5
  candidate: RTCIceCandidate | null;
6
6
  }
@@ -18,4 +18,3 @@ export default class RTCIceCandidateEvent<TEventType extends RTC_ICECANDIDATE_EV
18
18
  constructor(type: TEventType, eventInitDict: IRTCDataChannelEventInitDict);
19
19
  }
20
20
  export {};
21
- //# sourceMappingURL=RTCIceCandidateEvent.d.ts.map
@@ -9,11 +9,11 @@ import RTCRtpSender from './RTCRtpSender';
9
9
  import RTCRtpTransceiver from './RTCRtpTransceiver';
10
10
  import RTCSessionDescription, { RTCSessionDescriptionInit } from './RTCSessionDescription';
11
11
  import RTCTrackEvent from './RTCTrackEvent';
12
- type RTCSignalingState = 'stable' | 'have-local-offer' | 'have-remote-offer' | 'have-local-pranswer' | 'have-remote-pranswer' | 'closed';
13
- type RTCIceGatheringState = 'new' | 'gathering' | 'complete';
14
- type RTCPeerConnectionState = 'new' | 'connecting' | 'connected' | 'disconnected' | 'failed' | 'closed';
15
- type RTCIceConnectionState = 'new' | 'checking' | 'connected' | 'completed' | 'failed' | 'disconnected' | 'closed';
16
- type RTCDataChannelInit = {
12
+ declare type RTCSignalingState = 'stable' | 'have-local-offer' | 'have-remote-offer' | 'have-local-pranswer' | 'have-remote-pranswer' | 'closed';
13
+ declare type RTCIceGatheringState = 'new' | 'gathering' | 'complete';
14
+ declare type RTCPeerConnectionState = 'new' | 'connecting' | 'connected' | 'disconnected' | 'failed' | 'closed';
15
+ declare type RTCIceConnectionState = 'new' | 'checking' | 'connected' | 'completed' | 'failed' | 'disconnected' | 'closed';
16
+ declare type RTCDataChannelInit = {
17
17
  ordered?: boolean;
18
18
  maxPacketLifeTime?: number;
19
19
  maxRetransmits?: number;
@@ -21,7 +21,20 @@ type RTCDataChannelInit = {
21
21
  negotiated?: boolean;
22
22
  id?: number;
23
23
  };
24
- type RTCPeerConnectionEventMap = {
24
+ declare type RTCIceServer = {
25
+ credential?: string;
26
+ url?: string;
27
+ urls?: string | string[];
28
+ username?: string;
29
+ };
30
+ declare type RTCConfiguration = {
31
+ bundlePolicy?: 'balanced' | 'max-compat' | 'max-bundle';
32
+ iceCandidatePoolSize?: number;
33
+ iceServers?: RTCIceServer[];
34
+ iceTransportPolicy?: 'all' | 'relay';
35
+ rtcpMuxPolicy?: 'negotiate' | 'require';
36
+ };
37
+ declare type RTCPeerConnectionEventMap = {
25
38
  connectionstatechange: Event<'connectionstatechange'>;
26
39
  icecandidate: RTCIceCandidateEvent<'icecandidate'>;
27
40
  icecandidateerror: RTCIceCandidateEvent<'icecandidateerror'>;
@@ -47,7 +60,7 @@ export default class RTCPeerConnection extends EventTarget<RTCPeerConnectionEven
47
60
  }[];
48
61
  _remoteStreams: Map<string, MediaStream>;
49
62
  _pendingTrackEvents: any[];
50
- constructor(configuration: any);
63
+ constructor(configuration?: RTCConfiguration);
51
64
  createOffer(options: any): Promise<any>;
52
65
  createAnswer(): Promise<any>;
53
66
  setConfiguration(configuration: any): void;
@@ -101,4 +114,3 @@ export default class RTCPeerConnection extends EventTarget<RTCPeerConnectionEven
101
114
  _insertTransceiverSorted(order: number, transceiver: RTCRtpTransceiver): void;
102
115
  }
103
116
  export {};
104
- //# sourceMappingURL=RTCPeerConnection.d.ts.map
@@ -8,4 +8,3 @@ export default class RTCRtcpParameters {
8
8
  constructor(init: RTCRtcpParametersInit);
9
9
  toJSON(): RTCRtcpParametersInit;
10
10
  }
11
- //# sourceMappingURL=RTCRtcpParameters.d.ts.map
@@ -1,20 +1,9 @@
1
1
  import RTCRtpCodecCapability from './RTCRtpCodecCapability';
2
2
  /**
3
- * @brief represents codec capabilities for senders and receivers. Currently
4
- * this only supports codec names and does not have other
5
- * fields like clockRate and numChannels and such.
3
+ * @brief represents codec capabilities for senders and receivers.
6
4
  */
7
5
  export default class RTCRtpCapabilities {
8
6
  _codecs: RTCRtpCodecCapability[];
9
7
  constructor(codecs: RTCRtpCodecCapability[]);
10
8
  get codecs(): RTCRtpCodecCapability[];
11
9
  }
12
- /**
13
- * Hardcoded audio capabilities based on the WebRTC native documentation:
14
- * https://webrtc.github.io/webrtc-org/faq/. The mime type is specified in
15
- * https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-2.
16
- */
17
- export declare const DEFAULT_AUDIO_CAPABILITIES: RTCRtpCapabilities;
18
- export declare const senderCapabilities: RTCRtpCapabilities | null;
19
- export declare const receiverCapabilities: RTCRtpCapabilities | null;
20
- //# sourceMappingURL=RTCRtpCapabilities.d.ts.map
@@ -5,4 +5,3 @@ export default class RTCRtpCodecCapability {
5
5
  });
6
6
  get mimeType(): string;
7
7
  }
8
- //# sourceMappingURL=RTCRtpCodecCapability.d.ts.map
@@ -14,4 +14,3 @@ export default class RTCRtpCodecParameters {
14
14
  constructor(init: RTCRtpCodecParametersInit);
15
15
  toJSON(): RTCRtpCodecParametersInit;
16
16
  }
17
- //# sourceMappingURL=RTCRtpCodecParameters.d.ts.map
@@ -21,4 +21,3 @@ export default class RTCRtpEncodingParameters {
21
21
  set scaleResolutionDownBy(resolutionScale: number | null);
22
22
  toJSON(): RTCRtpEncodingParametersInit;
23
23
  }
24
- //# sourceMappingURL=RTCRtpEncodingParameters.d.ts.map
@@ -10,4 +10,3 @@ export default class RTCRtpHeaderExtension {
10
10
  constructor(init: RTCRtpHeaderExtensionInit);
11
11
  toJSON(): RTCRtpHeaderExtensionInit;
12
12
  }
13
- //# sourceMappingURL=RTCRtpHeaderExtension.d.ts.map
@@ -13,4 +13,3 @@ export default class RTCRtpParameters {
13
13
  constructor(init: RTCRtpParametersInit);
14
14
  toJSON(): RTCRtpParametersInit;
15
15
  }
16
- //# sourceMappingURL=RTCRtpParameters.d.ts.map
@@ -2,4 +2,3 @@ import RTCRtpParameters, { RTCRtpParametersInit } from './RTCRtpParameters';
2
2
  export default class RTCRtpReceiveParameters extends RTCRtpParameters {
3
3
  constructor(init: RTCRtpParametersInit);
4
4
  }
5
- //# sourceMappingURL=RTCRtpReceiveParameters.d.ts.map
@@ -19,4 +19,3 @@ export default class RTCRtpReceiver {
19
19
  get id(): string;
20
20
  get track(): MediaStreamTrack | null;
21
21
  }
22
- //# sourceMappingURL=RTCRtpReceiver.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import RTCRtpEncodingParameters, { RTCRtpEncodingParametersInit } from './RTCRtpEncodingParameters';
2
2
  import RTCRtpParameters, { RTCRtpParametersInit } from './RTCRtpParameters';
3
- type DegradationPreferenceType = 'maintain-framerate' | 'maintain-resolution' | 'balanced' | 'disabled';
3
+ declare type DegradationPreferenceType = 'maintain-framerate' | 'maintain-resolution' | 'balanced' | 'disabled';
4
4
  export interface RTCRtpSendParametersInit extends RTCRtpParametersInit {
5
5
  transactionId: string;
6
6
  encodings: RTCRtpEncodingParametersInit[];
@@ -14,4 +14,3 @@ export default class RTCRtpSendParameters extends RTCRtpParameters {
14
14
  toJSON(): RTCRtpSendParametersInit;
15
15
  }
16
16
  export {};
17
- //# sourceMappingURL=RTCRtpSendParameters.d.ts.map
@@ -20,4 +20,3 @@ export default class RTCRtpSender {
20
20
  get track(): MediaStreamTrack | null;
21
21
  get id(): string;
22
22
  }
23
- //# sourceMappingURL=RTCRtpSender.d.ts.map
@@ -1,3 +1,4 @@
1
+ import RTCRtpCodecCapability from './RTCRtpCodecCapability';
1
2
  import RTCRtpReceiver from './RTCRtpReceiver';
2
3
  import RTCRtpSender from './RTCRtpSender';
3
4
  export default class RTCRtpTransceiver {
@@ -25,6 +26,6 @@ export default class RTCRtpTransceiver {
25
26
  get sender(): RTCRtpSender;
26
27
  get receiver(): RTCRtpReceiver;
27
28
  stop(): void;
29
+ setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
28
30
  _setStopped(): void;
29
31
  }
30
- //# sourceMappingURL=RTCRtpTransceiver.d.ts.map
@@ -10,4 +10,3 @@ export default class RTCSessionDescription {
10
10
  get type(): string | null;
11
11
  toJSON(): RTCSessionDescriptionInit;
12
12
  }
13
- //# sourceMappingURL=RTCSessionDescription.d.ts.map
@@ -3,7 +3,7 @@ import MediaStream from './MediaStream';
3
3
  import type MediaStreamTrack from './MediaStreamTrack';
4
4
  import RTCRtpReceiver from './RTCRtpReceiver';
5
5
  import RTCRtpTransceiver from './RTCRtpTransceiver';
6
- type TRACK_EVENTS = 'track';
6
+ declare type TRACK_EVENTS = 'track';
7
7
  interface IRTCTrackEventInitDict extends Event.EventInit {
8
8
  streams: MediaStream[];
9
9
  transceiver: RTCRtpTransceiver;
@@ -27,4 +27,3 @@ export default class RTCTrackEvent<TEventType extends TRACK_EVENTS> extends Even
27
27
  constructor(type: TEventType, eventInitDict: IRTCTrackEventInitDict);
28
28
  }
29
29
  export {};
30
- //# sourceMappingURL=RTCTrackEvent.d.ts.map
@@ -29,4 +29,3 @@ export declare function normalizeOfferOptions(options?: object): object;
29
29
  * Normalize the given constraints in something we can work with.
30
30
  */
31
31
  export declare function normalizeConstraints(constraints: any): any;
32
- //# sourceMappingURL=RTCUtil.d.ts.map
@@ -28,7 +28,7 @@ interface RTCVideoViewProps extends ViewProps {
28
28
  *
29
29
  * streamURL: string
30
30
  */
31
- streamURL: string;
31
+ streamURL?: string;
32
32
  /**
33
33
  * Similarly to the CSS property z-index, specifies the z-order of this
34
34
  * RTCView in the stacking space of all RTCViews. When RTCViews overlap,
@@ -58,4 +58,3 @@ interface RTCVideoViewProps extends ViewProps {
58
58
  }
59
59
  declare const _default: import("react-native").HostComponent<RTCVideoViewProps>;
60
60
  export default _default;
61
- //# sourceMappingURL=RTCView.d.ts.map
@@ -1,3 +1,2 @@
1
1
  declare const _default: import("react-native").HostComponent<unknown>;
2
2
  export default _default;
3
- //# sourceMappingURL=ScreenCapturePickerView.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import MediaStream from './MediaStream';
2
2
  export default function getDisplayMedia(): Promise<MediaStream>;
3
- //# sourceMappingURL=getDisplayMedia.d.ts.map
@@ -5,4 +5,3 @@ interface Constraints {
5
5
  }
6
6
  export default function getUserMedia(constraints?: Constraints): Promise<MediaStream>;
7
7
  export {};
8
- //# sourceMappingURL=getUserMedia.d.ts.map
@@ -13,4 +13,3 @@ import RTCView from './RTCView';
13
13
  import ScreenCapturePickerView from './ScreenCapturePickerView';
14
14
  export { RTCIceCandidate, RTCPeerConnection, RTCSessionDescription, RTCView, ScreenCapturePickerView, RTCRtpTransceiver, RTCRtpReceiver, RTCRtpSender, RTCErrorEvent, MediaStream, MediaStreamTrack, mediaDevices, permissions, registerGlobals };
15
15
  declare function registerGlobals(): void;
16
- //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-webrtc",
3
- "version": "111.0.6",
3
+ "version": "118.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/react-native-webrtc/react-native-webrtc.git"
@@ -19,5 +19,5 @@ Pod::Spec.new do |s|
19
19
  s.libraries = 'c', 'sqlite3', 'stdc++'
20
20
  s.framework = 'AudioToolbox','AVFoundation', 'CoreAudio', 'CoreGraphics', 'CoreVideo', 'GLKit', 'VideoToolbox'
21
21
  s.dependency 'React-Core'
22
- s.dependency 'JitsiWebRTC', '~> 111.0.0'
22
+ s.dependency 'JitsiWebRTC', '~> 118.0.0'
23
23
  end
@@ -45,6 +45,21 @@ type RTCDataChannelInit = {
45
45
  id?: number
46
46
  };
47
47
 
48
+ type RTCIceServer = {
49
+ credential?: string,
50
+ url?: string, // Deprecated.
51
+ urls?: string | string[],
52
+ username?: string
53
+ };
54
+
55
+ type RTCConfiguration = {
56
+ bundlePolicy?: 'balanced' | 'max-compat' | 'max-bundle',
57
+ iceCandidatePoolSize?: number,
58
+ iceServers?: RTCIceServer[],
59
+ iceTransportPolicy?: 'all' | 'relay',
60
+ rtcpMuxPolicy?: 'negotiate' | 'require'
61
+ };
62
+
48
63
  type RTCPeerConnectionEventMap = {
49
64
  connectionstatechange: Event<'connectionstatechange'>
50
65
  icecandidate: RTCIceCandidateEvent<'icecandidate'>
@@ -73,11 +88,37 @@ export default class RTCPeerConnection extends EventTarget<RTCPeerConnectionEven
73
88
  _remoteStreams: Map<string, MediaStream>;
74
89
  _pendingTrackEvents: any[];
75
90
 
76
- constructor(configuration) {
91
+ constructor(configuration?: RTCConfiguration) {
77
92
  super();
78
93
 
79
94
  this._pcId = nextPeerConnectionId++;
80
95
 
96
+ // Sanitize ICE servers.
97
+ if (configuration) {
98
+ const servers = configuration?.iceServers ?? [];
99
+
100
+ for (const server of servers) {
101
+ let urls = server.url || server.urls;
102
+
103
+ delete server.url;
104
+ delete server.urls;
105
+
106
+ if (!urls) {
107
+ continue;
108
+ }
109
+
110
+ if (!Array.isArray(urls)) {
111
+ urls = [ urls ];
112
+ }
113
+
114
+ // Native WebRTC does case sensitive parsing.
115
+ server.urls = urls.map(url => url.toLowerCase());
116
+ }
117
+
118
+ // Filter out bogus servers.
119
+ configuration.iceServers = servers.filter(s => s.urls);
120
+ }
121
+
81
122
  if (!WebRTCModule.peerConnectionInit(configuration, this._pcId)) {
82
123
  throw new Error('Failed to initialize PeerConnection, check the native logs!');
83
124
  }
@@ -1,12 +1,7 @@
1
- import { NativeModules } from 'react-native';
2
-
3
1
  import RTCRtpCodecCapability from './RTCRtpCodecCapability';
4
- const { WebRTCModule } = NativeModules;
5
2
 
6
3
  /**
7
- * @brief represents codec capabilities for senders and receivers. Currently
8
- * this only supports codec names and does not have other
9
- * fields like clockRate and numChannels and such.
4
+ * @brief represents codec capabilities for senders and receivers.
10
5
  */
11
6
  export default class RTCRtpCapabilities {
12
7
  _codecs: RTCRtpCodecCapability[] = [];
@@ -19,47 +14,3 @@ export default class RTCRtpCapabilities {
19
14
  return this._codecs;
20
15
  }
21
16
  }
22
-
23
-
24
- function getCapabilities(endpoint: 'sender' | 'receiver'): RTCRtpCapabilities | null {
25
- switch (endpoint) {
26
- case 'sender': {
27
- const capabilities = WebRTCModule.senderGetCapabilities();
28
-
29
- if (!capabilities) {
30
- return null;
31
- }
32
-
33
- return new RTCRtpCapabilities(capabilities.codecs);
34
- }
35
-
36
- case 'receiver': {
37
- const capabilities = WebRTCModule.receiverGetCapabilities();
38
-
39
- if (!capabilities) {
40
- return null;
41
- }
42
-
43
- return new RTCRtpCapabilities(capabilities.codecs);
44
- }
45
-
46
- default:
47
- throw new TypeError('Invalid endpoint: ' + endpoint);
48
- }
49
- }
50
-
51
-
52
- /**
53
- * Hardcoded audio capabilities based on the WebRTC native documentation:
54
- * https://webrtc.github.io/webrtc-org/faq/. The mime type is specified in
55
- * https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-2.
56
- */
57
- export const DEFAULT_AUDIO_CAPABILITIES = new RTCRtpCapabilities([
58
- new RTCRtpCodecCapability({ mimeType: 'audio/G722' }),
59
- new RTCRtpCodecCapability({ mimeType: 'audio/iLBC' }),
60
- ]);
61
-
62
- // Initialize capabilities on module import
63
- export const senderCapabilities = getCapabilities('sender');
64
- export const receiverCapabilities = getCapabilities('receiver');
65
-
@@ -1,7 +1,7 @@
1
1
  import { NativeModules } from 'react-native';
2
2
 
3
3
  import MediaStreamTrack from './MediaStreamTrack';
4
- import RTCRtpCapabilities, { DEFAULT_AUDIO_CAPABILITIES, receiverCapabilities } from './RTCRtpCapabilities';
4
+ import RTCRtpCapabilities from './RTCRtpCapabilities';
5
5
  import { RTCRtpParametersInit } from './RTCRtpParameters';
6
6
  import RTCRtpReceiveParameters from './RTCRtpReceiveParameters';
7
7
 
@@ -29,15 +29,7 @@ export default class RTCRtpReceiver {
29
29
  }
30
30
 
31
31
  static getCapabilities(kind: 'audio' | 'video'): RTCRtpCapabilities {
32
- if (kind === 'audio') {
33
- return DEFAULT_AUDIO_CAPABILITIES;
34
- }
35
-
36
- if (!receiverCapabilities) {
37
- throw new Error('Receiver Capabilities is null');
38
- }
39
-
40
- return receiverCapabilities;
32
+ return WebRTCModule.receiverGetCapabilities(kind);
41
33
  }
42
34
 
43
35
  getStats() {
@@ -1,7 +1,7 @@
1
1
  import { NativeModules } from 'react-native';
2
2
 
3
3
  import MediaStreamTrack from './MediaStreamTrack';
4
- import RTCRtpCapabilities, { senderCapabilities, DEFAULT_AUDIO_CAPABILITIES } from './RTCRtpCapabilities';
4
+ import RTCRtpCapabilities from './RTCRtpCapabilities';
5
5
  import RTCRtpSendParameters, { RTCRtpSendParametersInit } from './RTCRtpSendParameters';
6
6
 
7
7
  const { WebRTCModule } = NativeModules;
@@ -39,15 +39,7 @@ export default class RTCRtpSender {
39
39
  }
40
40
 
41
41
  static getCapabilities(kind: 'audio' | 'video'): RTCRtpCapabilities {
42
- if (kind === 'audio') {
43
- return DEFAULT_AUDIO_CAPABILITIES;
44
- }
45
-
46
- if (!senderCapabilities) {
47
- throw new Error('sender Capabilities are null');
48
- }
49
-
50
- return senderCapabilities;
42
+ return WebRTCModule.senderGetCapabilities(kind);
51
43
  }
52
44
 
53
45
  getParameters(): RTCRtpSendParameters {
@@ -1,5 +1,6 @@
1
1
  import { NativeModules } from 'react-native';
2
2
 
3
+ import RTCRtpCodecCapability from './RTCRtpCodecCapability';
3
4
  import RTCRtpReceiver from './RTCRtpReceiver';
4
5
  import RTCRtpSender from './RTCRtpSender';
5
6
 
@@ -89,6 +90,14 @@ export default class RTCRtpTransceiver {
89
90
  .then(() => this._setStopped());
90
91
  }
91
92
 
93
+ setCodecPreferences(codecs: RTCRtpCodecCapability[]) {
94
+ WebRTCModule.transceiverSetCodecPreferences(
95
+ this._peerConnectionId,
96
+ this.sender.id,
97
+ codecs
98
+ );
99
+ }
100
+
92
101
  _setStopped() {
93
102
  this._stopped = true;
94
103
  this._direction = 'stopped';
package/src/RTCView.ts CHANGED
@@ -32,7 +32,7 @@ interface RTCVideoViewProps extends ViewProps {
32
32
  *
33
33
  * streamURL: string
34
34
  */
35
- streamURL: string;
35
+ streamURL?: string;
36
36
  /**
37
37
  * Similarly to the CSS property z-index, specifies the z-order of this
38
38
  * RTCView in the stacking space of all RTCViews. When RTCViews overlap,
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../src/EventEmitter.ts"],"names":[],"mappings":"AA6BA,wBAAgB,iBAAiB,SAMhC;AAED,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAC7C,KAAK,QAAQ,GAAG,OAAO,CAAC;AAIxB,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,CAUnG;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAMvD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../src/Logger.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,OAAO,MAAM;IACvB,MAAM,CAAC,WAAW,SAAe;IAEjC,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,KAAK,CAAiB;IAC9B,OAAO,CAAC,KAAK,CAAiB;IAC9B,OAAO,CAAC,MAAM,CAAiB;IAE/B,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;gBAInB,MAAM,EAAE,MAAM;IAgB1B,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIxB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIvB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIvB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI;CAKxC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaDevices.d.ts","sourceRoot":"","sources":["../../src/MediaDevices.ts"],"names":[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;IAWvC,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAW1C,SAAS,IAAI,gBAAgB,EAAE;IAI/B,YAAY,CAAC,OAAO,KAAA,GAAG,gBAAgB,GAAG,SAAS;IAInD,cAAc,IAAI,gBAAgB,EAAE;IAIpC,cAAc,IAAI,gBAAgB,EAAE;IAIpC,KAAK,IAAI,KAAK;IAId,KAAK,IAAI,MAAM;IAIf,OAAO,CAAC,aAAa,UAAO,GAAG,IAAI;CAatC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaStreamError.d.ts","sourceRoot":"","sources":["../../src/MediaStreamError.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;gBAEZ,KAAK,KAAA;CAKpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaStreamErrorEvent.d.ts","sourceRoot":"","sources":["../../src/MediaStreamErrorEvent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,MAAM,CAAC,OAAO,OAAO,qBAAqB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,gBAAgB,CAAC;gBACb,IAAI,KAAA,EAAE,aAAa,KAAA;CAIlC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaStreamTrack.d.ts","sourceRoot":"","sources":["../../src/MediaStreamTrack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAwB,MAAM,mBAAmB,CAAC;AAW7E,KAAK,qBAAqB,GAAG,MAAM,GAAG,OAAO,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,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Ae,IAAI,KAAK;IAIxB,cAAc;IAId,WAAW;IAIX,eAAe,IAAI,IAAI;IAavB,OAAO,IAAI,IAAI;CAQlB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaStreamTrackEvent.d.ts","sourceRoot":"","sources":["../../src/MediaStreamTrackEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,KAAK,mBAAmB,GAAG,UAAU,GAAE,aAAa,CAAA;AAEpD,UAAU,8BAA+B,SAAQ,KAAK,CAAC,SAAS;IAC9D,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAED;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAqB,CAAC,UAAU,SAAS,mBAAmB,CAAE,SAAQ,KAAK,CAAC,UAAU,CAAC;IACxG,qBAAqB;IACrB,KAAK,EAAE,gBAAgB,CAAC;gBACZ,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,8BAA8B;CAI9E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageEvent.d.ts","sourceRoot":"","sources":["../../src/MessageEvent.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;AAE3D,KAAK,cAAc,GAAG,SAAS,GAAG,cAAc,CAAC;AAEjD,UAAU,qBAAsB,SAAQ,KAAK,CAAC,SAAS;IACnD,IAAI,EAAE,gBAAgB,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY,CAAC,UAAU,SAAS,cAAc,CAAE,SAAQ,KAAK,CAAC,UAAU,CAAC;IAC1F,qBAAqB;IACrB,IAAI,EAAE,gBAAgB,CAAC;gBACX,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,qBAAqB;CAIrE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Permissions.d.ts","sourceRoot":"","sources":["../../src/Permissions.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,UAAU,EAAgC,MAAM,cAAc,CAAC;AAIvF;;GAEG;AACH,KAAK,oBAAoB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,cAAM,WAAW;IACb;;;OAGG;IACH,MAAM;;;;MAIJ;IAEF;;;OAGG;IACH,iBAAiB,WAA8B;IAE/C,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAqB;IAE/C;;;;;;;;;OASG;IACH,yBAAyB,CAAC,IAAI,EAAE,UAAU;IAS1C;;OAEG;IACH,8BAA8B,CAAC,cAAc,KAAA;IAgB7C;;;OAGG;IACH,KAAK,CAAC,cAAc,EAAE,oBAAoB;IA0B1C;;;OAGG;IACH,OAAO,CAAC,cAAc,EAAE,oBAAoB;CAuB/C;;AAED,wBAAiC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTCDataChannel.d.ts","sourceRoot":"","sources":["../../src/RTCDataChannel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AAItE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAIxD,KAAK,mBAAmB,GAAG,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAExE,KAAK,mBAAmB,GAAG;IACvB,iBAAiB,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;IAC5D,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACpC,OAAO,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IACxC,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACpC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,EAAE,mBA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