mediasoup-client 3.12.5 → 3.13.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.
- package/lib/Device.d.ts +1 -1
- package/lib/Device.d.ts.map +1 -1
- package/lib/Device.js +8 -81
- package/lib/handlers/{ReactNativeUnifiedPlan.d.ts → ReactNative106.d.ts} +2 -2
- package/lib/handlers/ReactNative106.d.ts.map +1 -0
- package/lib/handlers/{ReactNativeUnifiedPlan.js → ReactNative106.js} +6 -6
- package/lib/handlers/sdp/MediaSection.d.ts +3 -15
- package/lib/handlers/sdp/MediaSection.d.ts.map +1 -1
- package/lib/handlers/sdp/MediaSection.js +6 -113
- package/lib/handlers/sdp/RemoteSdp.d.ts +1 -7
- package/lib/handlers/sdp/RemoteSdp.d.ts.map +1 -1
- package/lib/handlers/sdp/RemoteSdp.js +18 -41
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/test/test.js +0 -112
- package/lib/test/uaTestCases.d.ts.map +1 -1
- package/lib/test/uaTestCases.js +0 -25
- package/npm-scripts.mjs +26 -14
- package/package.json +8 -8
- package/lib/handlers/Chrome55.d.ts +0 -51
- package/lib/handlers/Chrome55.d.ts.map +0 -1
- package/lib/handlers/Chrome55.js +0 -554
- package/lib/handlers/Chrome67.d.ts +0 -51
- package/lib/handlers/Chrome67.d.ts.map +0 -1
- package/lib/handlers/Chrome67.js +0 -609
- package/lib/handlers/Chrome70.d.ts +0 -49
- package/lib/handlers/Chrome70.d.ts.map +0 -1
- package/lib/handlers/Chrome70.js +0 -634
- package/lib/handlers/Edge11.d.ts +0 -55
- package/lib/handlers/Edge11.d.ts.map +0 -1
- package/lib/handlers/Edge11.js +0 -447
- package/lib/handlers/Firefox60.d.ts +0 -50
- package/lib/handlers/Firefox60.d.ts.map +0 -1
- package/lib/handlers/Firefox60.js +0 -721
- package/lib/handlers/ReactNative.d.ts +0 -51
- package/lib/handlers/ReactNative.d.ts.map +0 -1
- package/lib/handlers/ReactNative.js +0 -569
- package/lib/handlers/ReactNativeUnifiedPlan.d.ts.map +0 -1
- package/lib/handlers/Safari11.d.ts +0 -51
- package/lib/handlers/Safari11.d.ts.map +0 -1
- package/lib/handlers/Safari11.js +0 -604
- package/lib/handlers/ortc/edgeUtils.d.ts +0 -11
- package/lib/handlers/ortc/edgeUtils.d.ts.map +0 -1
- package/lib/handlers/ortc/edgeUtils.js +0 -70
- package/lib/handlers/sdp/planBUtils.d.ts +0 -14
- package/lib/handlers/sdp/planBUtils.d.ts.map +0 -1
- package/lib/handlers/sdp/planBUtils.js +0 -150
package/lib/test/test.js
CHANGED
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
* FakeHandler device is used.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
const sdpTransform = require("sdp-transform");
|
|
8
7
|
const fake_mediastreamtrack_1 = require("fake-mediastreamtrack");
|
|
9
8
|
const mediasoupClient = require("../index");
|
|
10
9
|
const errors_1 = require("../errors");
|
|
11
10
|
const utils = require("../utils");
|
|
12
|
-
const RemoteSdp_1 = require("../handlers/sdp/RemoteSdp");
|
|
13
11
|
const FakeHandler_1 = require("../handlers/FakeHandler");
|
|
14
12
|
const fakeParameters = require("./fakeParameters");
|
|
15
13
|
const uaTestCases_1 = require("./uaTestCases");
|
|
@@ -1120,116 +1118,6 @@ test('connection state change does not fire "connectionstatechange" in closed Tr
|
|
|
1120
1118
|
expect(connectionStateChangeEventNumTimesCalled).toBe(0);
|
|
1121
1119
|
expect(ctx.connectedSendTransport.connectionState).toBe('disconnected');
|
|
1122
1120
|
});
|
|
1123
|
-
test('RemoteSdp properly handles multiple streams of the same type in planB', () => {
|
|
1124
|
-
let sdp = undefined;
|
|
1125
|
-
let sdpObject = undefined;
|
|
1126
|
-
const remoteSdp = new RemoteSdp_1.RemoteSdp({ planB: true });
|
|
1127
|
-
remoteSdp.receive({
|
|
1128
|
-
mid: 'video',
|
|
1129
|
-
kind: 'video',
|
|
1130
|
-
offerRtpParameters: fakeParameters.generateConsumerRemoteParameters({
|
|
1131
|
-
codecMimeType: 'video/VP8',
|
|
1132
|
-
}).rtpParameters,
|
|
1133
|
-
streamId: 'streamId-1',
|
|
1134
|
-
trackId: 'trackId-1',
|
|
1135
|
-
});
|
|
1136
|
-
sdp = remoteSdp.getSdp();
|
|
1137
|
-
sdpObject = sdpTransform.parse(sdp);
|
|
1138
|
-
expect(sdpObject.media.length).toBe(1);
|
|
1139
|
-
expect(sdpObject.media[0].payloads).toBe('101 102');
|
|
1140
|
-
expect(sdpObject.media[0].rtp.length).toBe(2);
|
|
1141
|
-
expect(sdpObject.media[0].rtp[0].payload).toBe(101);
|
|
1142
|
-
expect(sdpObject.media[0].rtp[0].codec).toBe('VP8');
|
|
1143
|
-
expect(sdpObject.media[0].rtp[1].payload).toBe(102);
|
|
1144
|
-
expect(sdpObject.media[0].rtp[1].codec).toBe('rtx');
|
|
1145
|
-
expect(sdpObject.media[0].ssrcs?.length).toBe(4);
|
|
1146
|
-
remoteSdp.receive({
|
|
1147
|
-
mid: 'video',
|
|
1148
|
-
kind: 'video',
|
|
1149
|
-
offerRtpParameters: fakeParameters.generateConsumerRemoteParameters({
|
|
1150
|
-
codecMimeType: 'video/H264',
|
|
1151
|
-
}).rtpParameters,
|
|
1152
|
-
streamId: 'streamId-2',
|
|
1153
|
-
trackId: 'trackId-2',
|
|
1154
|
-
});
|
|
1155
|
-
sdp = remoteSdp.getSdp();
|
|
1156
|
-
sdpObject = sdpTransform.parse(sdp);
|
|
1157
|
-
expect(sdpObject.media.length).toBe(1);
|
|
1158
|
-
expect(sdpObject.media[0].payloads).toBe('101 102 103 104');
|
|
1159
|
-
expect(sdpObject.media[0].rtp.length).toBe(4);
|
|
1160
|
-
expect(sdpObject.media[0].rtp[0].payload).toBe(101);
|
|
1161
|
-
expect(sdpObject.media[0].rtp[0].codec).toBe('VP8');
|
|
1162
|
-
expect(sdpObject.media[0].rtp[1].payload).toBe(102);
|
|
1163
|
-
expect(sdpObject.media[0].rtp[1].codec).toBe('rtx');
|
|
1164
|
-
expect(sdpObject.media[0].rtp[2].payload).toBe(103);
|
|
1165
|
-
expect(sdpObject.media[0].rtp[2].codec).toBe('H264');
|
|
1166
|
-
expect(sdpObject.media[0].rtp[3].payload).toBe(104);
|
|
1167
|
-
expect(sdpObject.media[0].rtp[3].codec).toBe('rtx');
|
|
1168
|
-
expect(sdpObject.media[0].ssrcs?.length).toBe(8);
|
|
1169
|
-
remoteSdp.planBStopReceiving({
|
|
1170
|
-
mid: 'video',
|
|
1171
|
-
offerRtpParameters: fakeParameters.generateConsumerRemoteParameters({
|
|
1172
|
-
codecMimeType: 'video/H264',
|
|
1173
|
-
}).rtpParameters,
|
|
1174
|
-
});
|
|
1175
|
-
sdp = remoteSdp.getSdp();
|
|
1176
|
-
sdpObject = sdpTransform.parse(sdp);
|
|
1177
|
-
expect(sdpObject.media.length).toBe(1);
|
|
1178
|
-
expect(sdpObject.media[0].payloads).toBe('101 102 103 104');
|
|
1179
|
-
expect(sdpObject.media[0].rtp.length).toBe(4);
|
|
1180
|
-
expect(sdpObject.media[0].rtp[0].payload).toBe(101);
|
|
1181
|
-
expect(sdpObject.media[0].rtp[0].codec).toBe('VP8');
|
|
1182
|
-
expect(sdpObject.media[0].rtp[1].payload).toBe(102);
|
|
1183
|
-
expect(sdpObject.media[0].rtp[1].codec).toBe('rtx');
|
|
1184
|
-
expect(sdpObject.media[0].rtp[2].payload).toBe(103);
|
|
1185
|
-
expect(sdpObject.media[0].rtp[2].codec).toBe('H264');
|
|
1186
|
-
expect(sdpObject.media[0].rtp[3].payload).toBe(104);
|
|
1187
|
-
expect(sdpObject.media[0].rtp[3].codec).toBe('rtx');
|
|
1188
|
-
expect(sdpObject.media[0].ssrcs?.length).toBe(4);
|
|
1189
|
-
}, 500);
|
|
1190
|
-
test('RemoteSdp does not duplicate codec descriptions', () => {
|
|
1191
|
-
let sdp = undefined;
|
|
1192
|
-
let sdpObject = undefined;
|
|
1193
|
-
const remoteSdp = new RemoteSdp_1.RemoteSdp({ planB: true });
|
|
1194
|
-
remoteSdp.receive({
|
|
1195
|
-
mid: 'video',
|
|
1196
|
-
kind: 'video',
|
|
1197
|
-
offerRtpParameters: fakeParameters.generateConsumerRemoteParameters({
|
|
1198
|
-
codecMimeType: 'video/VP8',
|
|
1199
|
-
}).rtpParameters,
|
|
1200
|
-
streamId: 'streamId-1',
|
|
1201
|
-
trackId: 'trackId-1',
|
|
1202
|
-
});
|
|
1203
|
-
sdp = remoteSdp.getSdp();
|
|
1204
|
-
sdpObject = sdpTransform.parse(sdp);
|
|
1205
|
-
expect(sdpObject.media.length).toBe(1);
|
|
1206
|
-
expect(sdpObject.media[0].payloads).toBe('101 102');
|
|
1207
|
-
expect(sdpObject.media[0].rtp.length).toBe(2);
|
|
1208
|
-
expect(sdpObject.media[0].rtp[0].payload).toBe(101);
|
|
1209
|
-
expect(sdpObject.media[0].rtp[0].codec).toBe('VP8');
|
|
1210
|
-
expect(sdpObject.media[0].rtp[1].payload).toBe(102);
|
|
1211
|
-
expect(sdpObject.media[0].rtp[1].codec).toBe('rtx');
|
|
1212
|
-
expect(sdpObject.media[0].ssrcs?.length).toBe(4);
|
|
1213
|
-
remoteSdp.receive({
|
|
1214
|
-
mid: 'video',
|
|
1215
|
-
kind: 'video',
|
|
1216
|
-
offerRtpParameters: fakeParameters.generateConsumerRemoteParameters({
|
|
1217
|
-
codecMimeType: 'video/VP8',
|
|
1218
|
-
}).rtpParameters,
|
|
1219
|
-
streamId: 'streamId-1',
|
|
1220
|
-
trackId: 'trackId-1',
|
|
1221
|
-
});
|
|
1222
|
-
sdp = remoteSdp.getSdp();
|
|
1223
|
-
sdpObject = sdpTransform.parse(sdp);
|
|
1224
|
-
expect(sdpObject.media.length).toBe(1);
|
|
1225
|
-
expect(sdpObject.media[0].payloads).toBe('101 102');
|
|
1226
|
-
expect(sdpObject.media[0].rtp.length).toBe(2);
|
|
1227
|
-
expect(sdpObject.media[0].rtp[0].payload).toBe(101);
|
|
1228
|
-
expect(sdpObject.media[0].rtp[0].codec).toBe('VP8');
|
|
1229
|
-
expect(sdpObject.media[0].rtp[1].payload).toBe(102);
|
|
1230
|
-
expect(sdpObject.media[0].rtp[1].codec).toBe('rtx');
|
|
1231
|
-
expect(sdpObject.media[0].ssrcs?.length).toBe(8);
|
|
1232
|
-
}, 500);
|
|
1233
1121
|
test('parseScalabilityMode() works', () => {
|
|
1234
1122
|
expect(parseScalabilityMode('L1T3')).toEqual({
|
|
1235
1123
|
spatialLayers: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uaTestCases.d.ts","sourceRoot":"","sources":["../../src/test/uaTestCases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,KAAK,UAAU,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"uaTestCases.d.ts","sourceRoot":"","sources":["../../src/test/uaTestCases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,KAAK,UAAU,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,EAmEnC,CAAC"}
|
package/lib/test/uaTestCases.js
CHANGED
|
@@ -22,31 +22,11 @@ exports.uaTestCases = [
|
|
|
22
22
|
ua: 'Mozilla/5.0 (Linux; Android 10; motorola edge) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36',
|
|
23
23
|
expect: 'Chrome74',
|
|
24
24
|
},
|
|
25
|
-
{
|
|
26
|
-
desc: 'Microsoft Edge 44',
|
|
27
|
-
ua: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763',
|
|
28
|
-
expect: 'Edge11',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
desc: 'Firefox 68 (Android)',
|
|
32
|
-
ua: 'Mozilla/5.0 (Android 10; Mobile; rv:68.10.0) Gecko/68.10.0 Firefox/68.10.0',
|
|
33
|
-
expect: 'Firefox60',
|
|
34
|
-
},
|
|
35
25
|
{
|
|
36
26
|
desc: 'In-app WebView (Android)',
|
|
37
27
|
ua: 'Mozilla/5.0 (Linux; Android 11; G91 Pro Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.130 Mobile Safari/537.36',
|
|
38
28
|
expect: 'Chrome111',
|
|
39
29
|
},
|
|
40
|
-
{
|
|
41
|
-
desc: 'Safari 11',
|
|
42
|
-
ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_13) AppleWebKit/537.36 (KHTML, like Gecko) Version/11.0.92 Safari/619.28',
|
|
43
|
-
expect: 'Safari11',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
desc: 'Safari 11 (iPad)',
|
|
47
|
-
ua: 'Mozilla/5.0 (iPad; CPU OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1',
|
|
48
|
-
expect: 'Safari11',
|
|
49
|
-
},
|
|
50
30
|
{
|
|
51
31
|
desc: 'Brave',
|
|
52
32
|
ua: 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.4044.113 Safari/5370.36 Brave/9085',
|
|
@@ -57,11 +37,6 @@ exports.uaTestCases = [
|
|
|
57
37
|
ua: 'Mozilla/5.0 (Linux; Android 12; SM-S908U1 Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.88 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/377.0.0.22.107;]',
|
|
58
38
|
expect: 'Chrome74',
|
|
59
39
|
},
|
|
60
|
-
{
|
|
61
|
-
desc: 'Firefox (Linux)',
|
|
62
|
-
ua: 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:109.0) Gecko/20100101 Firefox/114.0',
|
|
63
|
-
expect: 'Firefox60',
|
|
64
|
-
},
|
|
65
40
|
{
|
|
66
41
|
desc: 'Firefox (iOS) - Unsupported',
|
|
67
42
|
ua: 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/114.0 Mobile/15E148 Safari/605.1.15',
|
package/npm-scripts.mjs
CHANGED
|
@@ -31,12 +31,12 @@ const PRETTIER_PATHS = [
|
|
|
31
31
|
].join(' ');
|
|
32
32
|
|
|
33
33
|
const task = process.argv[2];
|
|
34
|
-
const
|
|
34
|
+
const taskArgs = process.argv.slice(3).join(' ');
|
|
35
35
|
|
|
36
36
|
run();
|
|
37
37
|
|
|
38
38
|
async function run() {
|
|
39
|
-
logInfo(
|
|
39
|
+
logInfo(taskArgs ? `[args:"${taskArgs}"]` : '');
|
|
40
40
|
|
|
41
41
|
switch (task) {
|
|
42
42
|
// As per NPM documentation (https://docs.npmjs.com/cli/v9/using-npm/scripts)
|
|
@@ -92,7 +92,7 @@ async function run() {
|
|
|
92
92
|
|
|
93
93
|
case 'coverage': {
|
|
94
94
|
replaceVersion();
|
|
95
|
-
executeCmd(`jest --coverage ${
|
|
95
|
+
executeCmd(`jest --coverage ${taskArgs}`);
|
|
96
96
|
executeCmd('open-cli coverage/lcov-report/index.html');
|
|
97
97
|
|
|
98
98
|
break;
|
|
@@ -110,7 +110,7 @@ async function run() {
|
|
|
110
110
|
executeCmd(`git tag -a ${PKG.version} -m '${PKG.version}'`);
|
|
111
111
|
executeCmd(`git push origin v${MAYOR_VERSION}`);
|
|
112
112
|
executeCmd(`git push origin '${PKG.version}'`);
|
|
113
|
-
|
|
113
|
+
executeInteractiveCmd('npm publish');
|
|
114
114
|
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
@@ -137,7 +137,7 @@ function replaceVersion() {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
// NOTE: dirent.path is only available in Node >= 20.
|
|
140
|
-
const filePath = path.join(file.
|
|
140
|
+
const filePath = path.join(file.parentPath ?? 'lib', file.name);
|
|
141
141
|
const text = fs.readFileSync(filePath, { encoding: 'utf8' });
|
|
142
142
|
const result = text.replace(/__MEDIASOUP_CLIENT_VERSION__/g, PKG.version);
|
|
143
143
|
|
|
@@ -165,7 +165,7 @@ function buildTypescript({ force }) {
|
|
|
165
165
|
deleteLib();
|
|
166
166
|
|
|
167
167
|
// Generate .js CommonJS code and .d.ts TypeScript declaration files in lib/.
|
|
168
|
-
executeCmd(`tsc ${
|
|
168
|
+
executeCmd(`tsc ${taskArgs}`);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
function watchTypescript() {
|
|
@@ -173,7 +173,7 @@ function watchTypescript() {
|
|
|
173
173
|
|
|
174
174
|
deleteLib();
|
|
175
175
|
|
|
176
|
-
executeCmd(`tsc --watch ${
|
|
176
|
+
executeCmd(`tsc --watch ${taskArgs}`);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
function lint() {
|
|
@@ -199,7 +199,7 @@ function format() {
|
|
|
199
199
|
function test() {
|
|
200
200
|
logInfo('test()');
|
|
201
201
|
|
|
202
|
-
executeCmd(`jest --silent false --detectOpenHandles ${
|
|
202
|
+
executeCmd(`jest --silent false --detectOpenHandles ${taskArgs}`);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
function installDeps() {
|
|
@@ -237,20 +237,32 @@ function executeCmd(command) {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
function
|
|
240
|
+
function executeInteractiveCmd(command) {
|
|
241
|
+
logInfo(`executeInteractiveCmd(): ${command}`);
|
|
242
|
+
|
|
243
|
+
try {
|
|
244
|
+
execSync(command, { stdio: 'inherit', env: process.env });
|
|
245
|
+
} catch (error) {
|
|
246
|
+
logError(`executeInteractiveCmd() failed, exiting: ${error}`);
|
|
247
|
+
|
|
248
|
+
exitWithError();
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function logInfo(...args) {
|
|
241
253
|
// eslint-disable-next-line no-console
|
|
242
|
-
console.log(`npm-scripts \x1b[36m[INFO] [${task}]\x1b[0m`,
|
|
254
|
+
console.log(`npm-scripts.mjs \x1b[36m[INFO] [${task}]\x1b[0m`, ...args);
|
|
243
255
|
}
|
|
244
256
|
|
|
245
257
|
// eslint-disable-next-line no-unused-vars
|
|
246
|
-
function logWarn(
|
|
258
|
+
function logWarn(...args) {
|
|
247
259
|
// eslint-disable-next-line no-console
|
|
248
|
-
console.warn(`npm-scripts \x1b[33m[WARN] [${task}]\x1b
|
|
260
|
+
console.warn(`npm-scripts.mjs \x1b[33m[WARN] [${task}]\x1b\0m`, ...args);
|
|
249
261
|
}
|
|
250
262
|
|
|
251
|
-
function logError(
|
|
263
|
+
function logError(...args) {
|
|
252
264
|
// eslint-disable-next-line no-console
|
|
253
|
-
console.error(`npm-scripts \x1b[31m[ERROR] [${task}]\x1b[0m`,
|
|
265
|
+
console.error(`npm-scripts.mjs \x1b[31m[ERROR] [${task}]\x1b[0m`, ...args);
|
|
254
266
|
}
|
|
255
267
|
|
|
256
268
|
function exitWithError() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mediasoup-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"description": "mediasoup client side TypeScript library",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
|
|
@@ -79,21 +79,21 @@
|
|
|
79
79
|
"ua-parser-js": "^2.0.4"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@eslint/js": "^9.
|
|
82
|
+
"@eslint/js": "^9.32.0",
|
|
83
83
|
"@types/jest": "^30.0.0",
|
|
84
|
-
"@types/node": "^24.0
|
|
84
|
+
"@types/node": "^24.1.0",
|
|
85
85
|
"@types/sdp-transform": "^2.4.10",
|
|
86
86
|
"@types/ua-parser-js": "^0.7.39",
|
|
87
|
-
"eslint": "^9.
|
|
88
|
-
"eslint-config-prettier": "^10.1.
|
|
87
|
+
"eslint": "^9.32.0",
|
|
88
|
+
"eslint-config-prettier": "^10.1.8",
|
|
89
89
|
"eslint-plugin-jest": "^29.0.1",
|
|
90
|
-
"eslint-plugin-prettier": "^5.5.
|
|
90
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
91
91
|
"globals": "^16.3.0",
|
|
92
|
-
"jest": "^30.0.
|
|
92
|
+
"jest": "^30.0.5",
|
|
93
93
|
"open-cli": "^8.0.0",
|
|
94
94
|
"prettier": "^3.6.2",
|
|
95
95
|
"ts-jest": "^29.4.0",
|
|
96
96
|
"typescript": "^5.8.3",
|
|
97
|
-
"typescript-eslint": "^8.
|
|
97
|
+
"typescript-eslint": "^8.38.0"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { type HandlerFactory, HandlerInterface, type HandlerRunOptions, type HandlerSendOptions, type HandlerSendResult, type HandlerReceiveOptions, type HandlerReceiveResult, type HandlerSendDataChannelOptions, type HandlerSendDataChannelResult, type HandlerReceiveDataChannelOptions, type HandlerReceiveDataChannelResult } from './HandlerInterface';
|
|
2
|
-
import type { IceParameters } from '../Transport';
|
|
3
|
-
import type { RtpCapabilities } from '../RtpParameters';
|
|
4
|
-
import type { SctpCapabilities } from '../SctpParameters';
|
|
5
|
-
export declare class Chrome55 extends HandlerInterface {
|
|
6
|
-
private _direction?;
|
|
7
|
-
private _remoteSdp?;
|
|
8
|
-
private _sendingRtpParametersByKind?;
|
|
9
|
-
private _sendingRemoteRtpParametersByKind?;
|
|
10
|
-
private _forcedLocalDtlsRole?;
|
|
11
|
-
private _pc;
|
|
12
|
-
private readonly _sendStream;
|
|
13
|
-
private readonly _mapSendLocalIdTrack;
|
|
14
|
-
private _nextSendLocalId;
|
|
15
|
-
private readonly _mapRecvLocalIdInfo;
|
|
16
|
-
private _hasDataChannelMediaSection;
|
|
17
|
-
private _nextSendSctpStreamId;
|
|
18
|
-
private _transportReady;
|
|
19
|
-
/**
|
|
20
|
-
* Creates a factory function.
|
|
21
|
-
*/
|
|
22
|
-
static createFactory(): HandlerFactory;
|
|
23
|
-
constructor();
|
|
24
|
-
get name(): string;
|
|
25
|
-
close(): void;
|
|
26
|
-
getNativeRtpCapabilities(): Promise<RtpCapabilities>;
|
|
27
|
-
getNativeSctpCapabilities(): Promise<SctpCapabilities>;
|
|
28
|
-
run({ direction, iceParameters, iceCandidates, dtlsParameters, sctpParameters, iceServers, iceTransportPolicy, additionalSettings, proprietaryConstraints, extendedRtpCapabilities, }: HandlerRunOptions): void;
|
|
29
|
-
updateIceServers(iceServers: RTCIceServer[]): Promise<void>;
|
|
30
|
-
restartIce(iceParameters: IceParameters): Promise<void>;
|
|
31
|
-
getTransportStats(): Promise<RTCStatsReport>;
|
|
32
|
-
send({ track, encodings, codecOptions, codec, }: HandlerSendOptions): Promise<HandlerSendResult>;
|
|
33
|
-
stopSending(localId: string): Promise<void>;
|
|
34
|
-
pauseSending(localId: string): Promise<void>;
|
|
35
|
-
resumeSending(localId: string): Promise<void>;
|
|
36
|
-
replaceTrack(localId: string, track: MediaStreamTrack | null): Promise<void>;
|
|
37
|
-
setMaxSpatialLayer(localId: string, spatialLayer: number): Promise<void>;
|
|
38
|
-
setRtpEncodingParameters(localId: string, params: any): Promise<void>;
|
|
39
|
-
getSenderStats(localId: string): Promise<RTCStatsReport>;
|
|
40
|
-
sendDataChannel({ ordered, maxPacketLifeTime, maxRetransmits, label, protocol, }: HandlerSendDataChannelOptions): Promise<HandlerSendDataChannelResult>;
|
|
41
|
-
receive(optionsList: HandlerReceiveOptions[]): Promise<HandlerReceiveResult[]>;
|
|
42
|
-
stopReceiving(localIds: string[]): Promise<void>;
|
|
43
|
-
pauseReceiving(localIds: string[]): Promise<void>;
|
|
44
|
-
resumeReceiving(localIds: string[]): Promise<void>;
|
|
45
|
-
getReceiverStats(localId: string): Promise<RTCStatsReport>;
|
|
46
|
-
receiveDataChannel({ sctpStreamParameters, label, protocol, }: HandlerReceiveDataChannelOptions): Promise<HandlerReceiveDataChannelResult>;
|
|
47
|
-
private setupTransport;
|
|
48
|
-
private assertSendDirection;
|
|
49
|
-
private assertRecvDirection;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=Chrome55.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chrome55.d.ts","sourceRoot":"","sources":["../../src/handlers/Chrome55.ts"],"names":[],"mappings":"AAOA,OAAO,EACN,KAAK,cAAc,EACnB,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,aAAa,EAAY,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAwB,MAAM,mBAAmB,CAAC;AAOhF,qBAAa,QAAS,SAAQ,gBAAgB;IAE7C,OAAO,CAAC,UAAU,CAAC,CAAkB;IAErC,OAAO,CAAC,UAAU,CAAC,CAAY;IAE/B,OAAO,CAAC,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