@stream-io/video-client 0.0.34 → 0.0.36
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/CHANGELOG.md +14 -0
- package/dist/index.browser.es.js +12 -7
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +12 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/StreamVideoClient.ts +0 -1
- package/src/coordinator/connection/client.ts +4 -1
- package/src/rtc/Publisher.ts +11 -2
- package/src/rtc/flows/join.ts +0 -2
package/dist/index.cjs.js
CHANGED
|
@@ -6422,9 +6422,14 @@ class Publisher {
|
|
|
6422
6422
|
}
|
|
6423
6423
|
this.logger('warn', 'No mid found for track. Trying to find it from SDP');
|
|
6424
6424
|
const parsedSdp = SDP__namespace.parse(sdp);
|
|
6425
|
-
const media = parsedSdp.media.find((m) =>
|
|
6425
|
+
const media = parsedSdp.media.find((m) => {
|
|
6426
|
+
var _a, _b;
|
|
6427
|
+
return (m.type === track.kind &&
|
|
6428
|
+
// if `msid` is not present, we assume that the track is the first one
|
|
6429
|
+
((_b = (_a = m.msid) === null || _a === void 0 ? void 0 : _a.includes(track.id)) !== null && _b !== void 0 ? _b : true));
|
|
6430
|
+
});
|
|
6426
6431
|
if (typeof (media === null || media === void 0 ? void 0 : media.mid) === 'undefined') {
|
|
6427
|
-
this.logger('warn', `No mid found in SDP for track type ${track.kind}`);
|
|
6432
|
+
this.logger('warn', `No mid found in SDP for track type ${track.kind} and id ${track.id}`);
|
|
6428
6433
|
return '';
|
|
6429
6434
|
}
|
|
6430
6435
|
return String(media.mid);
|
|
@@ -8506,7 +8511,6 @@ const registerRingingCallEventHandlers = (call) => {
|
|
|
8506
8511
|
* @param data the data for the call.
|
|
8507
8512
|
*/
|
|
8508
8513
|
const join = (httpClient, type, id, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
8509
|
-
yield httpClient.connectionIdPromise;
|
|
8510
8514
|
const joinCallResponse = yield doJoin(httpClient, type, id, data);
|
|
8511
8515
|
const { call, credentials, members, own_capabilities } = joinCallResponse;
|
|
8512
8516
|
return {
|
|
@@ -11503,7 +11507,10 @@ class StreamClient {
|
|
|
11503
11507
|
if (this.waitForConnectPromise) {
|
|
11504
11508
|
yield this.waitForConnectPromise;
|
|
11505
11509
|
}
|
|
11506
|
-
yield
|
|
11510
|
+
yield Promise.all([
|
|
11511
|
+
this.tokenManager.tokenReady(),
|
|
11512
|
+
this.connectionIdPromise,
|
|
11513
|
+
]);
|
|
11507
11514
|
}
|
|
11508
11515
|
const requestConfig = this._enrichAxiosOptions(options);
|
|
11509
11516
|
try {
|
|
@@ -11852,7 +11859,7 @@ class StreamClient {
|
|
|
11852
11859
|
}
|
|
11853
11860
|
getUserAgent() {
|
|
11854
11861
|
return (this.userAgent ||
|
|
11855
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11862
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.35"}`);
|
|
11856
11863
|
}
|
|
11857
11864
|
setUserAgent(userAgent) {
|
|
11858
11865
|
this.userAgent = userAgent;
|
|
@@ -11996,8 +12003,6 @@ class StreamVideoClient {
|
|
|
11996
12003
|
* @param data the query data.
|
|
11997
12004
|
*/
|
|
11998
12005
|
this.queryCalls = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
11999
|
-
if (data.watch)
|
|
12000
|
-
yield this.streamClient.connectionIdPromise;
|
|
12001
12006
|
const response = yield this.streamClient.post('/calls', data);
|
|
12002
12007
|
const calls = response.calls.map((c) => {
|
|
12003
12008
|
const call = new Call({
|