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.
- package/.github/workflows/android_ci.yml +5 -1
- package/.github/workflows/ios_ci.yml +4 -0
- package/ISSUE_TEMPLATE.md +27 -12
- package/README.md +22 -10
- package/android/build.gradle +3 -3
- package/android/src/main/java/com/oney/WebRTCModule/GetUserMediaImpl.java +0 -1
- package/android/src/main/java/com/oney/WebRTCModule/ScreenCaptureController.java +19 -14
- package/android/src/main/java/com/oney/WebRTCModule/SerializeUtils.java +1 -1
- package/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java +53 -8
- package/android/src/main/java/com/oney/WebRTCModule/WebRTCView.java +21 -21
- package/ios/RCTWebRTC/CaptureController.m +4 -0
- package/ios/RCTWebRTC/RCTConvert+WebRTC.m +7 -1
- package/ios/RCTWebRTC/ScreenCaptureController.m +4 -0
- package/ios/RCTWebRTC/ScreenCapturePickerViewManager.m +2 -2
- package/ios/RCTWebRTC/ScreenCapturer.m +4 -0
- package/ios/RCTWebRTC/SerializeUtils.m +12 -10
- package/ios/RCTWebRTC/TrackCapturerEventsEmitter.m +1 -1
- package/ios/RCTWebRTC/VideoCaptureController.h +2 -1
- package/ios/RCTWebRTC/VideoCaptureController.m +3 -0
- package/ios/RCTWebRTC/WebRTCModule+Permissions.m +10 -1
- package/ios/RCTWebRTC/WebRTCModule+RTCMediaStream.h +1 -1
- package/ios/RCTWebRTC/WebRTCModule+RTCMediaStream.m +42 -8
- package/ios/RCTWebRTC/WebRTCModule+RTCPeerConnection.m +29 -13
- package/ios/RCTWebRTC/WebRTCModule.m +3 -1
- package/ios/RCTWebRTC/WebRTCModuleOptions.h +1 -0
- package/ios/RCTWebRTC/WebRTCModuleOptions.m +1 -0
- package/ios/RCTWebRTC.xcodeproj/project.pbxproj +1 -0
- package/lib/commonjs/EventEmitter.js +4 -16
- package/lib/commonjs/EventEmitter.js.map +1 -1
- package/lib/commonjs/Logger.js +2 -26
- package/lib/commonjs/Logger.js.map +1 -1
- package/lib/commonjs/MediaDevices.js +8 -15
- package/lib/commonjs/MediaDevices.js.map +1 -1
- package/lib/commonjs/MediaStream.js +21 -44
- package/lib/commonjs/MediaStream.js.map +1 -1
- package/lib/commonjs/MediaStreamError.js +0 -11
- package/lib/commonjs/MediaStreamError.js.map +1 -1
- package/lib/commonjs/MediaStreamErrorEvent.js +0 -9
- package/lib/commonjs/MediaStreamErrorEvent.js.map +1 -1
- package/lib/commonjs/MediaStreamTrack.js +14 -69
- package/lib/commonjs/MediaStreamTrack.js.map +1 -1
- package/lib/commonjs/MediaStreamTrackEvent.js +11 -10
- package/lib/commonjs/MediaStreamTrackEvent.js.map +1 -1
- package/lib/commonjs/MessageEvent.js +12 -10
- package/lib/commonjs/MessageEvent.js.map +1 -1
- package/lib/commonjs/Permissions.js +19 -29
- package/lib/commonjs/Permissions.js.map +1 -1
- package/lib/commonjs/RTCDataChannel.js +18 -77
- package/lib/commonjs/RTCDataChannel.js.map +1 -1
- package/lib/commonjs/RTCDataChannelEvent.js +11 -10
- package/lib/commonjs/RTCDataChannelEvent.js.map +1 -1
- package/lib/commonjs/RTCErrorEvent.js +2 -15
- package/lib/commonjs/RTCErrorEvent.js.map +1 -1
- package/lib/commonjs/RTCIceCandidate.js +0 -14
- package/lib/commonjs/RTCIceCandidate.js.map +1 -1
- package/lib/commonjs/RTCIceCandidateEvent.js +13 -13
- package/lib/commonjs/RTCIceCandidateEvent.js.map +1 -1
- package/lib/commonjs/RTCPeerConnection.js +129 -239
- package/lib/commonjs/RTCPeerConnection.js.map +1 -1
- package/lib/commonjs/RTCRtcpParameters.js +0 -10
- package/lib/commonjs/RTCRtcpParameters.js.map +1 -1
- package/lib/commonjs/RTCRtpCapabilities.js +5 -22
- package/lib/commonjs/RTCRtpCapabilities.js.map +1 -1
- package/lib/commonjs/RTCRtpCodecCapability.js +0 -8
- package/lib/commonjs/RTCRtpCodecCapability.js.map +1 -1
- package/lib/commonjs/RTCRtpCodecParameters.js +0 -19
- package/lib/commonjs/RTCRtpCodecParameters.js.map +1 -1
- package/lib/commonjs/RTCRtpEncodingParameters.js +4 -34
- package/lib/commonjs/RTCRtpEncodingParameters.js.map +1 -1
- package/lib/commonjs/RTCRtpHeaderExtension.js +0 -12
- package/lib/commonjs/RTCRtpHeaderExtension.js.map +1 -1
- package/lib/commonjs/RTCRtpParameters.js +2 -18
- package/lib/commonjs/RTCRtpParameters.js.map +1 -1
- package/lib/commonjs/RTCRtpReceiveParameters.js +0 -5
- package/lib/commonjs/RTCRtpReceiveParameters.js.map +1 -1
- package/lib/commonjs/RTCRtpReceiver.js +1 -26
- package/lib/commonjs/RTCRtpReceiver.js.map +1 -1
- package/lib/commonjs/RTCRtpSendParameters.js +0 -22
- package/lib/commonjs/RTCRtpSendParameters.js.map +1 -1
- package/lib/commonjs/RTCRtpSender.js +1 -30
- package/lib/commonjs/RTCRtpSender.js.map +1 -1
- package/lib/commonjs/RTCRtpTransceiver.js +3 -36
- package/lib/commonjs/RTCRtpTransceiver.js.map +1 -1
- package/lib/commonjs/RTCSessionDescription.js +0 -13
- package/lib/commonjs/RTCSessionDescription.js.map +1 -1
- package/lib/commonjs/RTCTrackEvent.js +16 -14
- package/lib/commonjs/RTCTrackEvent.js.map +1 -1
- package/lib/commonjs/RTCUtil.js +9 -36
- package/lib/commonjs/RTCUtil.js.map +1 -1
- package/lib/commonjs/RTCView.js +6 -3
- package/lib/commonjs/RTCView.js.map +1 -1
- package/lib/commonjs/ScreenCapturePickerView.js +0 -3
- package/lib/commonjs/ScreenCapturePickerView.js.map +1 -1
- package/lib/commonjs/getDisplayMedia.js +0 -6
- package/lib/commonjs/getDisplayMedia.js.map +1 -1
- package/lib/commonjs/getUserMedia.js +7 -28
- package/lib/commonjs/getUserMedia.js.map +1 -1
- package/lib/commonjs/index.js +1 -26
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/EventEmitter.js +5 -12
- package/lib/module/EventEmitter.js.map +1 -1
- package/lib/module/Logger.js +2 -22
- package/lib/module/Logger.js.map +1 -1
- package/lib/module/MediaDevices.js +9 -9
- package/lib/module/MediaDevices.js.map +1 -1
- package/lib/module/MediaStream.js +24 -39
- package/lib/module/MediaStream.js.map +1 -1
- package/lib/module/MediaStreamError.js +0 -9
- package/lib/module/MediaStreamError.js.map +1 -1
- package/lib/module/MediaStreamErrorEvent.js +0 -7
- package/lib/module/MediaStreamErrorEvent.js.map +1 -1
- package/lib/module/MediaStreamTrack.js +14 -62
- package/lib/module/MediaStreamTrack.js.map +1 -1
- package/lib/module/MediaStreamTrackEvent.js +11 -8
- package/lib/module/MediaStreamTrackEvent.js.map +1 -1
- package/lib/module/MessageEvent.js +12 -8
- package/lib/module/MessageEvent.js.map +1 -1
- package/lib/module/Permissions.js +19 -26
- package/lib/module/Permissions.js.map +1 -1
- package/lib/module/RTCDataChannel.js +20 -67
- package/lib/module/RTCDataChannel.js.map +1 -1
- package/lib/module/RTCDataChannelEvent.js +11 -8
- package/lib/module/RTCDataChannelEvent.js.map +1 -1
- package/lib/module/RTCErrorEvent.js +2 -11
- package/lib/module/RTCErrorEvent.js.map +1 -1
- package/lib/module/RTCIceCandidate.js +0 -12
- package/lib/module/RTCIceCandidate.js.map +1 -1
- package/lib/module/RTCIceCandidateEvent.js +13 -11
- package/lib/module/RTCIceCandidateEvent.js.map +1 -1
- package/lib/module/RTCPeerConnection.js +131 -215
- package/lib/module/RTCPeerConnection.js.map +1 -1
- package/lib/module/RTCRtcpParameters.js +0 -8
- package/lib/module/RTCRtcpParameters.js.map +1 -1
- package/lib/module/RTCRtpCapabilities.js +5 -17
- package/lib/module/RTCRtpCapabilities.js.map +1 -1
- package/lib/module/RTCRtpCodecCapability.js +0 -6
- package/lib/module/RTCRtpCodecCapability.js.map +1 -1
- package/lib/module/RTCRtpCodecParameters.js +0 -17
- package/lib/module/RTCRtpCodecParameters.js.map +1 -1
- package/lib/module/RTCRtpEncodingParameters.js +4 -32
- package/lib/module/RTCRtpEncodingParameters.js.map +1 -1
- package/lib/module/RTCRtpHeaderExtension.js +0 -10
- package/lib/module/RTCRtpHeaderExtension.js.map +1 -1
- package/lib/module/RTCRtpParameters.js +2 -12
- package/lib/module/RTCRtpParameters.js.map +1 -1
- package/lib/module/RTCRtpReceiveParameters.js +0 -1
- package/lib/module/RTCRtpReceiveParameters.js.map +1 -1
- package/lib/module/RTCRtpReceiver.js +1 -19
- package/lib/module/RTCRtpReceiver.js.map +1 -1
- package/lib/module/RTCRtpSendParameters.js +0 -18
- package/lib/module/RTCRtpSendParameters.js.map +1 -1
- package/lib/module/RTCRtpSender.js +1 -23
- package/lib/module/RTCRtpSender.js.map +1 -1
- package/lib/module/RTCRtpTransceiver.js +3 -32
- package/lib/module/RTCRtpTransceiver.js.map +1 -1
- package/lib/module/RTCSessionDescription.js +0 -11
- package/lib/module/RTCSessionDescription.js.map +1 -1
- package/lib/module/RTCTrackEvent.js +16 -12
- package/lib/module/RTCTrackEvent.js.map +1 -1
- package/lib/module/RTCUtil.js +9 -32
- package/lib/module/RTCUtil.js.map +1 -1
- package/lib/module/RTCView.js +1 -0
- package/lib/module/RTCView.js.map +1 -1
- package/lib/module/ScreenCapturePickerView.js.map +1 -1
- package/lib/module/getDisplayMedia.js.map +1 -1
- package/lib/module/getUserMedia.js +7 -18
- package/lib/module/getUserMedia.js.map +1 -1
- package/lib/module/index.js +2 -7
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/EventEmitter.d.ts +3 -2
- package/lib/typescript/EventEmitter.d.ts.map +1 -0
- package/lib/typescript/Logger.d.ts +1 -0
- package/lib/typescript/Logger.d.ts.map +1 -0
- package/lib/typescript/MediaDevices.d.ts +6 -3
- package/lib/typescript/MediaDevices.d.ts.map +1 -0
- package/lib/typescript/MediaStream.d.ts +17 -7
- package/lib/typescript/MediaStream.d.ts.map +1 -0
- package/lib/typescript/MediaStreamError.d.ts +1 -0
- package/lib/typescript/MediaStreamError.d.ts.map +1 -0
- package/lib/typescript/MediaStreamErrorEvent.d.ts +1 -0
- package/lib/typescript/MediaStreamErrorEvent.d.ts.map +1 -0
- package/lib/typescript/MediaStreamTrack.d.ts +21 -6
- package/lib/typescript/MediaStreamTrack.d.ts.map +1 -0
- package/lib/typescript/MediaStreamTrackEvent.d.ts +17 -5
- package/lib/typescript/MediaStreamTrackEvent.d.ts.map +1 -0
- package/lib/typescript/MessageEvent.d.ts +19 -6
- package/lib/typescript/MessageEvent.d.ts.map +1 -0
- package/lib/typescript/Permissions.d.ts +2 -1
- package/lib/typescript/Permissions.d.ts.map +1 -0
- package/lib/typescript/RTCDataChannel.d.ts +14 -4
- package/lib/typescript/RTCDataChannel.d.ts.map +1 -0
- package/lib/typescript/RTCDataChannelEvent.d.ts +17 -5
- package/lib/typescript/RTCDataChannelEvent.d.ts.map +1 -0
- package/lib/typescript/RTCErrorEvent.d.ts +5 -4
- package/lib/typescript/RTCErrorEvent.d.ts.map +1 -0
- package/lib/typescript/RTCIceCandidate.d.ts +8 -5
- package/lib/typescript/RTCIceCandidate.d.ts.map +1 -0
- package/lib/typescript/RTCIceCandidateEvent.d.ts +18 -3
- package/lib/typescript/RTCIceCandidateEvent.d.ts.map +1 -0
- package/lib/typescript/RTCPeerConnection.d.ts +23 -8
- package/lib/typescript/RTCPeerConnection.d.ts.map +1 -0
- package/lib/typescript/RTCRtcpParameters.d.ts +1 -0
- package/lib/typescript/RTCRtcpParameters.d.ts.map +1 -0
- package/lib/typescript/RTCRtpCapabilities.d.ts +1 -0
- package/lib/typescript/RTCRtpCapabilities.d.ts.map +1 -0
- package/lib/typescript/RTCRtpCodecCapability.d.ts +1 -0
- package/lib/typescript/RTCRtpCodecCapability.d.ts.map +1 -0
- package/lib/typescript/RTCRtpCodecParameters.d.ts +1 -0
- package/lib/typescript/RTCRtpCodecParameters.d.ts.map +1 -0
- package/lib/typescript/RTCRtpEncodingParameters.d.ts +1 -0
- package/lib/typescript/RTCRtpEncodingParameters.d.ts.map +1 -0
- package/lib/typescript/RTCRtpHeaderExtension.d.ts +1 -0
- package/lib/typescript/RTCRtpHeaderExtension.d.ts.map +1 -0
- package/lib/typescript/RTCRtpParameters.d.ts +1 -0
- package/lib/typescript/RTCRtpParameters.d.ts.map +1 -0
- package/lib/typescript/RTCRtpReceiveParameters.d.ts +1 -0
- package/lib/typescript/RTCRtpReceiveParameters.d.ts.map +1 -0
- package/lib/typescript/RTCRtpReceiver.d.ts +1 -0
- package/lib/typescript/RTCRtpReceiver.d.ts.map +1 -0
- package/lib/typescript/RTCRtpSendParameters.d.ts +2 -1
- package/lib/typescript/RTCRtpSendParameters.d.ts.map +1 -0
- package/lib/typescript/RTCRtpSender.d.ts +1 -0
- package/lib/typescript/RTCRtpSender.d.ts.map +1 -0
- package/lib/typescript/RTCRtpTransceiver.d.ts +1 -0
- package/lib/typescript/RTCRtpTransceiver.d.ts.map +1 -0
- package/lib/typescript/RTCSessionDescription.d.ts +1 -0
- package/lib/typescript/RTCSessionDescription.d.ts.map +1 -0
- package/lib/typescript/RTCTrackEvent.d.ts +21 -6
- package/lib/typescript/RTCTrackEvent.d.ts.map +1 -0
- package/lib/typescript/RTCUtil.d.ts +1 -0
- package/lib/typescript/RTCUtil.d.ts.map +1 -0
- package/lib/typescript/RTCView.d.ts +1 -0
- package/lib/typescript/RTCView.d.ts.map +1 -0
- package/lib/typescript/ScreenCapturePickerView.d.ts +1 -0
- package/lib/typescript/ScreenCapturePickerView.d.ts.map +1 -0
- package/lib/typescript/getDisplayMedia.d.ts +1 -0
- package/lib/typescript/getDisplayMedia.d.ts.map +1 -0
- package/lib/typescript/getUserMedia.d.ts +1 -0
- package/lib/typescript/getUserMedia.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/package.json +3 -5
- package/react-native-webrtc.podspec +1 -1
- package/src/MediaDevices.ts +13 -4
- package/src/MediaStream.ts +37 -13
- package/src/MediaStreamTrack.ts +28 -7
- package/src/MediaStreamTrackEvent.ts +18 -4
- package/src/MessageEvent.ts +19 -5
- package/src/RTCDataChannel.ts +22 -9
- package/src/RTCDataChannelEvent.ts +21 -4
- package/src/RTCErrorEvent.ts +3 -3
- package/src/RTCIceCandidate.ts +7 -1
- package/src/RTCIceCandidateEvent.ts +19 -4
- package/src/RTCPeerConnection.ts +61 -35
- package/src/RTCRtpTransceiver.ts +2 -2
- package/src/RTCTrackEvent.ts +25 -4
- package/src/index.ts +1 -2
- package/tools/format.sh +6 -0
- package/lib/commonjs/MediaStreamEvent.js +0 -23
- package/lib/commonjs/MediaStreamEvent.js.map +0 -1
- package/lib/commonjs/RTCEvent.js +0 -20
- package/lib/commonjs/RTCEvent.js.map +0 -1
- package/lib/module/MediaStreamEvent.js +0 -14
- package/lib/module/MediaStreamEvent.js.map +0 -1
- package/lib/module/RTCEvent.js +0 -11
- package/lib/module/RTCEvent.js.map +0 -1
- package/lib/typescript/MediaStreamEvent.d.ts +0 -8
- package/lib/typescript/RTCEvent.d.ts +0 -4
- package/src/MediaStreamEvent.ts +0 -11
- package/src/RTCEvent.ts +0 -7
package/src/RTCTrackEvent.ts
CHANGED
|
@@ -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
|
-
|
|
8
|
-
|
|
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:
|
|
15
|
-
|
|
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();
|
package/tools/format.sh
ADDED
|
@@ -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"]}
|
package/lib/commonjs/RTCEvent.js
DELETED
|
@@ -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"]}
|
package/lib/module/RTCEvent.js
DELETED
|
@@ -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"]}
|
package/src/MediaStreamEvent.ts
DELETED
|
@@ -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
|
-
}
|