react-native-webrtc 111.0.0 → 111.0.6

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 (270) hide show
  1. package/.github/workflows/android_ci.yml +5 -1
  2. package/.github/workflows/ios_ci.yml +4 -0
  3. package/ISSUE_TEMPLATE.md +27 -12
  4. package/README.md +22 -10
  5. package/android/build.gradle +3 -3
  6. package/android/src/main/java/com/oney/WebRTCModule/GetUserMediaImpl.java +0 -1
  7. package/android/src/main/java/com/oney/WebRTCModule/ScreenCaptureController.java +19 -14
  8. package/android/src/main/java/com/oney/WebRTCModule/SerializeUtils.java +1 -1
  9. package/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java +53 -8
  10. package/android/src/main/java/com/oney/WebRTCModule/WebRTCView.java +21 -21
  11. package/ios/RCTWebRTC/CaptureController.m +4 -0
  12. package/ios/RCTWebRTC/RCTConvert+WebRTC.m +7 -1
  13. package/ios/RCTWebRTC/ScreenCaptureController.m +4 -0
  14. package/ios/RCTWebRTC/ScreenCapturePickerViewManager.m +2 -2
  15. package/ios/RCTWebRTC/ScreenCapturer.m +4 -0
  16. package/ios/RCTWebRTC/SerializeUtils.m +12 -10
  17. package/ios/RCTWebRTC/TrackCapturerEventsEmitter.m +1 -1
  18. package/ios/RCTWebRTC/VideoCaptureController.h +2 -1
  19. package/ios/RCTWebRTC/VideoCaptureController.m +3 -0
  20. package/ios/RCTWebRTC/WebRTCModule+Permissions.m +10 -1
  21. package/ios/RCTWebRTC/WebRTCModule+RTCMediaStream.h +1 -1
  22. package/ios/RCTWebRTC/WebRTCModule+RTCMediaStream.m +42 -8
  23. package/ios/RCTWebRTC/WebRTCModule+RTCPeerConnection.m +29 -13
  24. package/ios/RCTWebRTC/WebRTCModule.m +3 -1
  25. package/ios/RCTWebRTC/WebRTCModuleOptions.h +1 -0
  26. package/ios/RCTWebRTC/WebRTCModuleOptions.m +1 -0
  27. package/ios/RCTWebRTC.xcodeproj/project.pbxproj +1 -0
  28. package/lib/commonjs/EventEmitter.js +4 -16
  29. package/lib/commonjs/EventEmitter.js.map +1 -1
  30. package/lib/commonjs/Logger.js +2 -26
  31. package/lib/commonjs/Logger.js.map +1 -1
  32. package/lib/commonjs/MediaDevices.js +8 -15
  33. package/lib/commonjs/MediaDevices.js.map +1 -1
  34. package/lib/commonjs/MediaStream.js +21 -44
  35. package/lib/commonjs/MediaStream.js.map +1 -1
  36. package/lib/commonjs/MediaStreamError.js +0 -11
  37. package/lib/commonjs/MediaStreamError.js.map +1 -1
  38. package/lib/commonjs/MediaStreamErrorEvent.js +0 -9
  39. package/lib/commonjs/MediaStreamErrorEvent.js.map +1 -1
  40. package/lib/commonjs/MediaStreamTrack.js +14 -69
  41. package/lib/commonjs/MediaStreamTrack.js.map +1 -1
  42. package/lib/commonjs/MediaStreamTrackEvent.js +11 -10
  43. package/lib/commonjs/MediaStreamTrackEvent.js.map +1 -1
  44. package/lib/commonjs/MessageEvent.js +12 -10
  45. package/lib/commonjs/MessageEvent.js.map +1 -1
  46. package/lib/commonjs/Permissions.js +19 -29
  47. package/lib/commonjs/Permissions.js.map +1 -1
  48. package/lib/commonjs/RTCDataChannel.js +18 -77
  49. package/lib/commonjs/RTCDataChannel.js.map +1 -1
  50. package/lib/commonjs/RTCDataChannelEvent.js +11 -10
  51. package/lib/commonjs/RTCDataChannelEvent.js.map +1 -1
  52. package/lib/commonjs/RTCErrorEvent.js +2 -15
  53. package/lib/commonjs/RTCErrorEvent.js.map +1 -1
  54. package/lib/commonjs/RTCIceCandidate.js +0 -14
  55. package/lib/commonjs/RTCIceCandidate.js.map +1 -1
  56. package/lib/commonjs/RTCIceCandidateEvent.js +13 -13
  57. package/lib/commonjs/RTCIceCandidateEvent.js.map +1 -1
  58. package/lib/commonjs/RTCPeerConnection.js +129 -239
  59. package/lib/commonjs/RTCPeerConnection.js.map +1 -1
  60. package/lib/commonjs/RTCRtcpParameters.js +0 -10
  61. package/lib/commonjs/RTCRtcpParameters.js.map +1 -1
  62. package/lib/commonjs/RTCRtpCapabilities.js +5 -22
  63. package/lib/commonjs/RTCRtpCapabilities.js.map +1 -1
  64. package/lib/commonjs/RTCRtpCodecCapability.js +0 -8
  65. package/lib/commonjs/RTCRtpCodecCapability.js.map +1 -1
  66. package/lib/commonjs/RTCRtpCodecParameters.js +0 -19
  67. package/lib/commonjs/RTCRtpCodecParameters.js.map +1 -1
  68. package/lib/commonjs/RTCRtpEncodingParameters.js +4 -34
  69. package/lib/commonjs/RTCRtpEncodingParameters.js.map +1 -1
  70. package/lib/commonjs/RTCRtpHeaderExtension.js +0 -12
  71. package/lib/commonjs/RTCRtpHeaderExtension.js.map +1 -1
  72. package/lib/commonjs/RTCRtpParameters.js +2 -18
  73. package/lib/commonjs/RTCRtpParameters.js.map +1 -1
  74. package/lib/commonjs/RTCRtpReceiveParameters.js +0 -5
  75. package/lib/commonjs/RTCRtpReceiveParameters.js.map +1 -1
  76. package/lib/commonjs/RTCRtpReceiver.js +1 -26
  77. package/lib/commonjs/RTCRtpReceiver.js.map +1 -1
  78. package/lib/commonjs/RTCRtpSendParameters.js +0 -22
  79. package/lib/commonjs/RTCRtpSendParameters.js.map +1 -1
  80. package/lib/commonjs/RTCRtpSender.js +1 -30
  81. package/lib/commonjs/RTCRtpSender.js.map +1 -1
  82. package/lib/commonjs/RTCRtpTransceiver.js +3 -36
  83. package/lib/commonjs/RTCRtpTransceiver.js.map +1 -1
  84. package/lib/commonjs/RTCSessionDescription.js +0 -13
  85. package/lib/commonjs/RTCSessionDescription.js.map +1 -1
  86. package/lib/commonjs/RTCTrackEvent.js +16 -14
  87. package/lib/commonjs/RTCTrackEvent.js.map +1 -1
  88. package/lib/commonjs/RTCUtil.js +9 -36
  89. package/lib/commonjs/RTCUtil.js.map +1 -1
  90. package/lib/commonjs/RTCView.js +6 -3
  91. package/lib/commonjs/RTCView.js.map +1 -1
  92. package/lib/commonjs/ScreenCapturePickerView.js +0 -3
  93. package/lib/commonjs/ScreenCapturePickerView.js.map +1 -1
  94. package/lib/commonjs/getDisplayMedia.js +0 -6
  95. package/lib/commonjs/getDisplayMedia.js.map +1 -1
  96. package/lib/commonjs/getUserMedia.js +7 -28
  97. package/lib/commonjs/getUserMedia.js.map +1 -1
  98. package/lib/commonjs/index.js +1 -26
  99. package/lib/commonjs/index.js.map +1 -1
  100. package/lib/module/EventEmitter.js +5 -12
  101. package/lib/module/EventEmitter.js.map +1 -1
  102. package/lib/module/Logger.js +2 -22
  103. package/lib/module/Logger.js.map +1 -1
  104. package/lib/module/MediaDevices.js +9 -9
  105. package/lib/module/MediaDevices.js.map +1 -1
  106. package/lib/module/MediaStream.js +24 -39
  107. package/lib/module/MediaStream.js.map +1 -1
  108. package/lib/module/MediaStreamError.js +0 -9
  109. package/lib/module/MediaStreamError.js.map +1 -1
  110. package/lib/module/MediaStreamErrorEvent.js +0 -7
  111. package/lib/module/MediaStreamErrorEvent.js.map +1 -1
  112. package/lib/module/MediaStreamTrack.js +14 -62
  113. package/lib/module/MediaStreamTrack.js.map +1 -1
  114. package/lib/module/MediaStreamTrackEvent.js +11 -8
  115. package/lib/module/MediaStreamTrackEvent.js.map +1 -1
  116. package/lib/module/MessageEvent.js +12 -8
  117. package/lib/module/MessageEvent.js.map +1 -1
  118. package/lib/module/Permissions.js +19 -26
  119. package/lib/module/Permissions.js.map +1 -1
  120. package/lib/module/RTCDataChannel.js +20 -67
  121. package/lib/module/RTCDataChannel.js.map +1 -1
  122. package/lib/module/RTCDataChannelEvent.js +11 -8
  123. package/lib/module/RTCDataChannelEvent.js.map +1 -1
  124. package/lib/module/RTCErrorEvent.js +2 -11
  125. package/lib/module/RTCErrorEvent.js.map +1 -1
  126. package/lib/module/RTCIceCandidate.js +0 -12
  127. package/lib/module/RTCIceCandidate.js.map +1 -1
  128. package/lib/module/RTCIceCandidateEvent.js +13 -11
  129. package/lib/module/RTCIceCandidateEvent.js.map +1 -1
  130. package/lib/module/RTCPeerConnection.js +131 -215
  131. package/lib/module/RTCPeerConnection.js.map +1 -1
  132. package/lib/module/RTCRtcpParameters.js +0 -8
  133. package/lib/module/RTCRtcpParameters.js.map +1 -1
  134. package/lib/module/RTCRtpCapabilities.js +5 -17
  135. package/lib/module/RTCRtpCapabilities.js.map +1 -1
  136. package/lib/module/RTCRtpCodecCapability.js +0 -6
  137. package/lib/module/RTCRtpCodecCapability.js.map +1 -1
  138. package/lib/module/RTCRtpCodecParameters.js +0 -17
  139. package/lib/module/RTCRtpCodecParameters.js.map +1 -1
  140. package/lib/module/RTCRtpEncodingParameters.js +4 -32
  141. package/lib/module/RTCRtpEncodingParameters.js.map +1 -1
  142. package/lib/module/RTCRtpHeaderExtension.js +0 -10
  143. package/lib/module/RTCRtpHeaderExtension.js.map +1 -1
  144. package/lib/module/RTCRtpParameters.js +2 -12
  145. package/lib/module/RTCRtpParameters.js.map +1 -1
  146. package/lib/module/RTCRtpReceiveParameters.js +0 -1
  147. package/lib/module/RTCRtpReceiveParameters.js.map +1 -1
  148. package/lib/module/RTCRtpReceiver.js +1 -19
  149. package/lib/module/RTCRtpReceiver.js.map +1 -1
  150. package/lib/module/RTCRtpSendParameters.js +0 -18
  151. package/lib/module/RTCRtpSendParameters.js.map +1 -1
  152. package/lib/module/RTCRtpSender.js +1 -23
  153. package/lib/module/RTCRtpSender.js.map +1 -1
  154. package/lib/module/RTCRtpTransceiver.js +3 -32
  155. package/lib/module/RTCRtpTransceiver.js.map +1 -1
  156. package/lib/module/RTCSessionDescription.js +0 -11
  157. package/lib/module/RTCSessionDescription.js.map +1 -1
  158. package/lib/module/RTCTrackEvent.js +16 -12
  159. package/lib/module/RTCTrackEvent.js.map +1 -1
  160. package/lib/module/RTCUtil.js +9 -32
  161. package/lib/module/RTCUtil.js.map +1 -1
  162. package/lib/module/RTCView.js +1 -0
  163. package/lib/module/RTCView.js.map +1 -1
  164. package/lib/module/ScreenCapturePickerView.js.map +1 -1
  165. package/lib/module/getDisplayMedia.js.map +1 -1
  166. package/lib/module/getUserMedia.js +7 -18
  167. package/lib/module/getUserMedia.js.map +1 -1
  168. package/lib/module/index.js +2 -7
  169. package/lib/module/index.js.map +1 -1
  170. package/lib/typescript/EventEmitter.d.ts +3 -2
  171. package/lib/typescript/EventEmitter.d.ts.map +1 -0
  172. package/lib/typescript/Logger.d.ts +1 -0
  173. package/lib/typescript/Logger.d.ts.map +1 -0
  174. package/lib/typescript/MediaDevices.d.ts +6 -3
  175. package/lib/typescript/MediaDevices.d.ts.map +1 -0
  176. package/lib/typescript/MediaStream.d.ts +17 -7
  177. package/lib/typescript/MediaStream.d.ts.map +1 -0
  178. package/lib/typescript/MediaStreamError.d.ts +1 -0
  179. package/lib/typescript/MediaStreamError.d.ts.map +1 -0
  180. package/lib/typescript/MediaStreamErrorEvent.d.ts +1 -0
  181. package/lib/typescript/MediaStreamErrorEvent.d.ts.map +1 -0
  182. package/lib/typescript/MediaStreamTrack.d.ts +21 -6
  183. package/lib/typescript/MediaStreamTrack.d.ts.map +1 -0
  184. package/lib/typescript/MediaStreamTrackEvent.d.ts +17 -5
  185. package/lib/typescript/MediaStreamTrackEvent.d.ts.map +1 -0
  186. package/lib/typescript/MessageEvent.d.ts +19 -6
  187. package/lib/typescript/MessageEvent.d.ts.map +1 -0
  188. package/lib/typescript/Permissions.d.ts +2 -1
  189. package/lib/typescript/Permissions.d.ts.map +1 -0
  190. package/lib/typescript/RTCDataChannel.d.ts +14 -4
  191. package/lib/typescript/RTCDataChannel.d.ts.map +1 -0
  192. package/lib/typescript/RTCDataChannelEvent.d.ts +17 -5
  193. package/lib/typescript/RTCDataChannelEvent.d.ts.map +1 -0
  194. package/lib/typescript/RTCErrorEvent.d.ts +5 -4
  195. package/lib/typescript/RTCErrorEvent.d.ts.map +1 -0
  196. package/lib/typescript/RTCIceCandidate.d.ts +8 -5
  197. package/lib/typescript/RTCIceCandidate.d.ts.map +1 -0
  198. package/lib/typescript/RTCIceCandidateEvent.d.ts +18 -3
  199. package/lib/typescript/RTCIceCandidateEvent.d.ts.map +1 -0
  200. package/lib/typescript/RTCPeerConnection.d.ts +23 -8
  201. package/lib/typescript/RTCPeerConnection.d.ts.map +1 -0
  202. package/lib/typescript/RTCRtcpParameters.d.ts +1 -0
  203. package/lib/typescript/RTCRtcpParameters.d.ts.map +1 -0
  204. package/lib/typescript/RTCRtpCapabilities.d.ts +1 -0
  205. package/lib/typescript/RTCRtpCapabilities.d.ts.map +1 -0
  206. package/lib/typescript/RTCRtpCodecCapability.d.ts +1 -0
  207. package/lib/typescript/RTCRtpCodecCapability.d.ts.map +1 -0
  208. package/lib/typescript/RTCRtpCodecParameters.d.ts +1 -0
  209. package/lib/typescript/RTCRtpCodecParameters.d.ts.map +1 -0
  210. package/lib/typescript/RTCRtpEncodingParameters.d.ts +1 -0
  211. package/lib/typescript/RTCRtpEncodingParameters.d.ts.map +1 -0
  212. package/lib/typescript/RTCRtpHeaderExtension.d.ts +1 -0
  213. package/lib/typescript/RTCRtpHeaderExtension.d.ts.map +1 -0
  214. package/lib/typescript/RTCRtpParameters.d.ts +1 -0
  215. package/lib/typescript/RTCRtpParameters.d.ts.map +1 -0
  216. package/lib/typescript/RTCRtpReceiveParameters.d.ts +1 -0
  217. package/lib/typescript/RTCRtpReceiveParameters.d.ts.map +1 -0
  218. package/lib/typescript/RTCRtpReceiver.d.ts +1 -0
  219. package/lib/typescript/RTCRtpReceiver.d.ts.map +1 -0
  220. package/lib/typescript/RTCRtpSendParameters.d.ts +2 -1
  221. package/lib/typescript/RTCRtpSendParameters.d.ts.map +1 -0
  222. package/lib/typescript/RTCRtpSender.d.ts +1 -0
  223. package/lib/typescript/RTCRtpSender.d.ts.map +1 -0
  224. package/lib/typescript/RTCRtpTransceiver.d.ts +1 -0
  225. package/lib/typescript/RTCRtpTransceiver.d.ts.map +1 -0
  226. package/lib/typescript/RTCSessionDescription.d.ts +1 -0
  227. package/lib/typescript/RTCSessionDescription.d.ts.map +1 -0
  228. package/lib/typescript/RTCTrackEvent.d.ts +21 -6
  229. package/lib/typescript/RTCTrackEvent.d.ts.map +1 -0
  230. package/lib/typescript/RTCUtil.d.ts +1 -0
  231. package/lib/typescript/RTCUtil.d.ts.map +1 -0
  232. package/lib/typescript/RTCView.d.ts +1 -0
  233. package/lib/typescript/RTCView.d.ts.map +1 -0
  234. package/lib/typescript/ScreenCapturePickerView.d.ts +1 -0
  235. package/lib/typescript/ScreenCapturePickerView.d.ts.map +1 -0
  236. package/lib/typescript/getDisplayMedia.d.ts +1 -0
  237. package/lib/typescript/getDisplayMedia.d.ts.map +1 -0
  238. package/lib/typescript/getUserMedia.d.ts +1 -0
  239. package/lib/typescript/getUserMedia.d.ts.map +1 -0
  240. package/lib/typescript/index.d.ts +1 -0
  241. package/lib/typescript/index.d.ts.map +1 -0
  242. package/package.json +3 -5
  243. package/react-native-webrtc.podspec +1 -1
  244. package/src/MediaDevices.ts +13 -4
  245. package/src/MediaStream.ts +37 -13
  246. package/src/MediaStreamTrack.ts +28 -7
  247. package/src/MediaStreamTrackEvent.ts +18 -4
  248. package/src/MessageEvent.ts +19 -5
  249. package/src/RTCDataChannel.ts +22 -9
  250. package/src/RTCDataChannelEvent.ts +21 -4
  251. package/src/RTCErrorEvent.ts +3 -3
  252. package/src/RTCIceCandidate.ts +7 -1
  253. package/src/RTCIceCandidateEvent.ts +19 -4
  254. package/src/RTCPeerConnection.ts +61 -35
  255. package/src/RTCRtpTransceiver.ts +2 -2
  256. package/src/RTCTrackEvent.ts +25 -4
  257. package/src/index.ts +1 -2
  258. package/tools/format.sh +6 -0
  259. package/lib/commonjs/MediaStreamEvent.js +0 -23
  260. package/lib/commonjs/MediaStreamEvent.js.map +0 -1
  261. package/lib/commonjs/RTCEvent.js +0 -20
  262. package/lib/commonjs/RTCEvent.js.map +0 -1
  263. package/lib/module/MediaStreamEvent.js +0 -14
  264. package/lib/module/MediaStreamEvent.js.map +0 -1
  265. package/lib/module/RTCEvent.js +0 -11
  266. package/lib/module/RTCEvent.js.map +0 -1
  267. package/lib/typescript/MediaStreamEvent.d.ts +0 -8
  268. package/lib/typescript/RTCEvent.d.ts +0 -4
  269. package/src/MediaStreamEvent.ts +0 -11
  270. package/src/RTCEvent.ts +0 -7
@@ -1,18 +1,39 @@
1
+ import { Event } from 'event-target-shim';
1
2
 
2
3
  import MediaStream from './MediaStream';
3
4
  import type MediaStreamTrack from './MediaStreamTrack';
4
5
  import RTCRtpReceiver from './RTCRtpReceiver';
5
6
  import RTCRtpTransceiver from './RTCRtpTransceiver';
6
7
 
7
- export default class RTCTrackEvent {
8
- type: string;
8
+ type TRACK_EVENTS = 'track'
9
+
10
+ interface IRTCTrackEventInitDict extends Event.EventInit {
11
+ streams: MediaStream[]
12
+ transceiver: RTCRtpTransceiver
13
+ }
14
+
15
+ /**
16
+ * @eventClass
17
+ * This event is fired whenever the Track is changed in PeerConnection.
18
+ * @param {TRACK_EVENTS} type - The type of event.
19
+ * @param {IRTCTrackEventInitDict} eventInitDict - The event init properties.
20
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/track_event MDN} for details.
21
+ */
22
+ export default class RTCTrackEvent<TEventType extends TRACK_EVENTS> extends Event<TEventType> {
23
+ /** @eventProperty */
9
24
  readonly streams: MediaStream[] = [];
25
+
26
+ /** @eventProperty */
10
27
  readonly transceiver: RTCRtpTransceiver;
28
+
29
+ /** @eventProperty */
11
30
  readonly receiver: RTCRtpReceiver | null;
31
+
32
+ /** @eventProperty */
12
33
  readonly track: MediaStreamTrack | null;
13
34
 
14
- constructor(type: string, eventInitDict: { streams: MediaStream[], transceiver: RTCRtpTransceiver }) {
15
- this.type = type.toString();
35
+ constructor(type: TEventType, eventInitDict: IRTCTrackEventInitDict) {
36
+ super(type, eventInitDict);
16
37
  this.streams = eventInitDict.streams;
17
38
  this.transceiver = eventInitDict.transceiver;
18
39
  this.receiver = eventInitDict.transceiver.receiver;
package/src/index.ts CHANGED
@@ -25,8 +25,7 @@ import RTCSessionDescription from './RTCSessionDescription';
25
25
  import RTCView from './RTCView';
26
26
  import ScreenCapturePickerView from './ScreenCapturePickerView';
27
27
 
28
- Logger.enable('*');
29
- // Logger.enable(`*,-${Logger.ROOT_PREFIX}:*:DEBUG`);
28
+ Logger.enable(`${Logger.ROOT_PREFIX}:*`);
30
29
 
31
30
  // Add listeners for the native events early, since they are added asynchronously.
32
31
  setupNativeEvents();
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ #set -x
4
+
5
+ exec git ls-files | grep -e "\(\.java\|\.h\|\.m\)$" | grep -v examples | xargs clang-format -i
6
+
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
-
10
- class MediaStreamEvent {
11
- constructor(type, eventInitDict) {
12
- _defineProperty(this, "type", void 0);
13
-
14
- _defineProperty(this, "stream", void 0);
15
-
16
- this.type = type.toString();
17
- this.stream = eventInitDict.stream;
18
- }
19
-
20
- }
21
-
22
- exports.default = MediaStreamEvent;
23
- //# sourceMappingURL=MediaStreamEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["MediaStreamEvent.ts"],"names":["MediaStreamEvent","constructor","type","eventInitDict","toString","stream"],"mappings":";;;;;;;;;AAGe,MAAMA,gBAAN,CAAuB;AAGlCC,EAAAA,WAAW,CAACC,IAAD,EAAOC,aAAP,EAA+C;AAAA;;AAAA;;AACtD,SAAKD,IAAL,GAAYA,IAAI,CAACE,QAAL,EAAZ;AACA,SAAKC,MAAL,GAAcF,aAAa,CAACE,MAA5B;AACH;;AANiC","sourcesContent":["\nimport type MediaStream from './MediaStream';\n\nexport default class MediaStreamEvent {\n type: string;\n stream: MediaStream;\n constructor(type, eventInitDict: { stream: MediaStream }) {\n this.type = type.toString();\n this.stream = eventInitDict.stream;\n }\n}\n"]}
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
-
10
- class RTCEvent {
11
- constructor(type) {
12
- _defineProperty(this, "type", void 0);
13
-
14
- this.type = type.toString();
15
- }
16
-
17
- }
18
-
19
- exports.default = RTCEvent;
20
- //# sourceMappingURL=RTCEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["RTCEvent.ts"],"names":["RTCEvent","constructor","type","toString"],"mappings":";;;;;;;;;AACe,MAAMA,QAAN,CAAe;AAE1BC,EAAAA,WAAW,CAACC,IAAD,EAAO;AAAA;;AACd,SAAKA,IAAL,GAAYA,IAAI,CAACC,QAAL,EAAZ;AACH;;AAJyB","sourcesContent":["\nexport default class RTCEvent {\n type: string;\n constructor(type) {\n this.type = type.toString();\n }\n}\n"]}
@@ -1,14 +0,0 @@
1
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
-
3
- export default class MediaStreamEvent {
4
- constructor(type, eventInitDict) {
5
- _defineProperty(this, "type", void 0);
6
-
7
- _defineProperty(this, "stream", void 0);
8
-
9
- this.type = type.toString();
10
- this.stream = eventInitDict.stream;
11
- }
12
-
13
- }
14
- //# sourceMappingURL=MediaStreamEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["MediaStreamEvent.ts"],"names":["MediaStreamEvent","constructor","type","eventInitDict","toString","stream"],"mappings":";;AAGA,eAAe,MAAMA,gBAAN,CAAuB;AAGlCC,EAAAA,WAAW,CAACC,IAAD,EAAOC,aAAP,EAA+C;AAAA;;AAAA;;AACtD,SAAKD,IAAL,GAAYA,IAAI,CAACE,QAAL,EAAZ;AACA,SAAKC,MAAL,GAAcF,aAAa,CAACE,MAA5B;AACH;;AANiC","sourcesContent":["\nimport type MediaStream from './MediaStream';\n\nexport default class MediaStreamEvent {\n type: string;\n stream: MediaStream;\n constructor(type, eventInitDict: { stream: MediaStream }) {\n this.type = type.toString();\n this.stream = eventInitDict.stream;\n }\n}\n"]}
@@ -1,11 +0,0 @@
1
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
-
3
- export default class RTCEvent {
4
- constructor(type) {
5
- _defineProperty(this, "type", void 0);
6
-
7
- this.type = type.toString();
8
- }
9
-
10
- }
11
- //# sourceMappingURL=RTCEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["RTCEvent.ts"],"names":["RTCEvent","constructor","type","toString"],"mappings":";;AACA,eAAe,MAAMA,QAAN,CAAe;AAE1BC,EAAAA,WAAW,CAACC,IAAD,EAAO;AAAA;;AACd,SAAKA,IAAL,GAAYA,IAAI,CAACC,QAAL,EAAZ;AACH;;AAJyB","sourcesContent":["\nexport default class RTCEvent {\n type: string;\n constructor(type) {\n this.type = type.toString();\n }\n}\n"]}
@@ -1,8 +0,0 @@
1
- import type MediaStream from './MediaStream';
2
- export default class MediaStreamEvent {
3
- type: string;
4
- stream: MediaStream;
5
- constructor(type: any, eventInitDict: {
6
- stream: MediaStream;
7
- });
8
- }
@@ -1,4 +0,0 @@
1
- export default class RTCEvent {
2
- type: string;
3
- constructor(type: any);
4
- }
@@ -1,11 +0,0 @@
1
-
2
- import type MediaStream from './MediaStream';
3
-
4
- export default class MediaStreamEvent {
5
- type: string;
6
- stream: MediaStream;
7
- constructor(type, eventInitDict: { stream: MediaStream }) {
8
- this.type = type.toString();
9
- this.stream = eventInitDict.stream;
10
- }
11
- }
package/src/RTCEvent.ts DELETED
@@ -1,7 +0,0 @@
1
-
2
- export default class RTCEvent {
3
- type: string;
4
- constructor(type) {
5
- this.type = type.toString();
6
- }
7
- }