@gjsify/webrtc 0.3.13 → 0.3.14
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/lib/esm/get-user-media.js +95 -80
- package/lib/esm/gst-enum-maps.js +55 -59
- package/lib/esm/gst-init.js +19 -22
- package/lib/esm/gst-stats-parser.js +94 -67
- package/lib/esm/gst-utils.js +24 -13
- package/lib/esm/index.js +13 -43
- package/lib/esm/media-device-info.js +23 -22
- package/lib/esm/media-devices.js +150 -139
- package/lib/esm/media-stream-track.js +136 -139
- package/lib/esm/media-stream.js +76 -75
- package/lib/esm/register/data-channel.js +7 -3
- package/lib/esm/register/error.js +6 -2
- package/lib/esm/register/media-devices.js +6 -2
- package/lib/esm/register/media.js +8 -4
- package/lib/esm/register/peer-connection.js +9 -5
- package/lib/esm/rtc-certificate.js +62 -66
- package/lib/esm/rtc-data-channel.js +240 -251
- package/lib/esm/rtc-dtls-transport.js +40 -39
- package/lib/esm/rtc-dtmf-sender.js +92 -100
- package/lib/esm/rtc-error.js +24 -22
- package/lib/esm/rtc-events.js +33 -33
- package/lib/esm/rtc-ice-candidate.js +71 -72
- package/lib/esm/rtc-ice-transport.js +95 -94
- package/lib/esm/rtc-peer-connection.js +796 -845
- package/lib/esm/rtc-rtp-receiver.js +89 -87
- package/lib/esm/rtc-rtp-sender.js +282 -290
- package/lib/esm/rtc-rtp-transceiver.js +92 -93
- package/lib/esm/rtc-sctp-transport.js +38 -38
- package/lib/esm/rtc-session-description.js +47 -51
- package/lib/esm/rtc-stats-report.js +39 -34
- package/lib/esm/rtc-track-event.js +29 -27
- package/lib/esm/rtp-capabilities.js +81 -35
- package/lib/esm/tee-multiplexer.js +58 -60
- package/lib/esm/wpt-helpers.js +128 -112
- package/package.json +13 -13
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,96 +1,97 @@
|
|
|
1
|
-
import "@gjsify/dom-events/register/event-target";
|
|
2
1
|
import { RTCIceCandidate } from "./rtc-ice-candidate.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
RTCIceTransport
|
|
2
|
+
import "@gjsify/dom-events/register/event-target";
|
|
3
|
+
|
|
4
|
+
//#region src/rtc-ice-transport.ts
|
|
5
|
+
var RTCIceTransport = class extends EventTarget {
|
|
6
|
+
_state = "new";
|
|
7
|
+
_gatheringState = "new";
|
|
8
|
+
_role = "unknown";
|
|
9
|
+
_component = "rtp";
|
|
10
|
+
_localCandidates = [];
|
|
11
|
+
_remoteCandidates = [];
|
|
12
|
+
_localParams = null;
|
|
13
|
+
_remoteParams = null;
|
|
14
|
+
_onstatechange = null;
|
|
15
|
+
_ongatheringstatechange = null;
|
|
16
|
+
_onselectedcandidatepairchange = null;
|
|
17
|
+
get state() {
|
|
18
|
+
return this._state;
|
|
19
|
+
}
|
|
20
|
+
get gatheringState() {
|
|
21
|
+
return this._gatheringState;
|
|
22
|
+
}
|
|
23
|
+
get role() {
|
|
24
|
+
return this._role;
|
|
25
|
+
}
|
|
26
|
+
get component() {
|
|
27
|
+
return this._component;
|
|
28
|
+
}
|
|
29
|
+
get onstatechange() {
|
|
30
|
+
return this._onstatechange;
|
|
31
|
+
}
|
|
32
|
+
set onstatechange(v) {
|
|
33
|
+
this._onstatechange = v;
|
|
34
|
+
}
|
|
35
|
+
get ongatheringstatechange() {
|
|
36
|
+
return this._ongatheringstatechange;
|
|
37
|
+
}
|
|
38
|
+
set ongatheringstatechange(v) {
|
|
39
|
+
this._ongatheringstatechange = v;
|
|
40
|
+
}
|
|
41
|
+
get onselectedcandidatepairchange() {
|
|
42
|
+
return this._onselectedcandidatepairchange;
|
|
43
|
+
}
|
|
44
|
+
set onselectedcandidatepairchange(v) {
|
|
45
|
+
this._onselectedcandidatepairchange = v;
|
|
46
|
+
}
|
|
47
|
+
getLocalCandidates() {
|
|
48
|
+
return [...this._localCandidates];
|
|
49
|
+
}
|
|
50
|
+
getRemoteCandidates() {
|
|
51
|
+
return [...this._remoteCandidates];
|
|
52
|
+
}
|
|
53
|
+
getSelectedCandidatePair() {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
getLocalParameters() {
|
|
57
|
+
return this._localParams;
|
|
58
|
+
}
|
|
59
|
+
getRemoteParameters() {
|
|
60
|
+
return this._remoteParams;
|
|
61
|
+
}
|
|
62
|
+
/** @internal */
|
|
63
|
+
_setState(state) {
|
|
64
|
+
if (this._state === state) return;
|
|
65
|
+
this._state = state;
|
|
66
|
+
const ev = new Event("statechange");
|
|
67
|
+
this._onstatechange?.call(this, ev);
|
|
68
|
+
this.dispatchEvent(ev);
|
|
69
|
+
}
|
|
70
|
+
/** @internal */
|
|
71
|
+
_setGatheringState(state) {
|
|
72
|
+
if (this._gatheringState === state) return;
|
|
73
|
+
this._gatheringState = state;
|
|
74
|
+
const ev = new Event("gatheringstatechange");
|
|
75
|
+
this._ongatheringstatechange?.call(this, ev);
|
|
76
|
+
this.dispatchEvent(ev);
|
|
77
|
+
}
|
|
78
|
+
/** @internal */
|
|
79
|
+
_addLocalCandidate(init) {
|
|
80
|
+
this._localCandidates.push(new RTCIceCandidate(init));
|
|
81
|
+
}
|
|
82
|
+
/** @internal */
|
|
83
|
+
_addRemoteCandidate(init) {
|
|
84
|
+
this._remoteCandidates.push(new RTCIceCandidate(init));
|
|
85
|
+
}
|
|
86
|
+
/** @internal */
|
|
87
|
+
_setLocalParameters(params) {
|
|
88
|
+
this._localParams = params;
|
|
89
|
+
}
|
|
90
|
+
/** @internal */
|
|
91
|
+
_setRemoteParameters(params) {
|
|
92
|
+
this._remoteParams = params;
|
|
93
|
+
}
|
|
96
94
|
};
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
export { RTCIceTransport };
|