@stream-io/video-client 0.0.29 → 0.0.30
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 +7 -0
- package/dist/index.browser.es.js +10 -9
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +10 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10 -9
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Call.ts +1 -1
- package/src/rtc/flows/join.ts +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8612,9 +8612,10 @@ const toRtcConfiguration = (config) => {
|
|
|
8612
8612
|
return rtcConfig;
|
|
8613
8613
|
};
|
|
8614
8614
|
const getCascadingModeParams = () => {
|
|
8615
|
+
var _a;
|
|
8615
8616
|
if (typeof window === 'undefined')
|
|
8616
8617
|
return null;
|
|
8617
|
-
const params = new URLSearchParams(window.location.search);
|
|
8618
|
+
const params = new URLSearchParams((_a = window.location) === null || _a === void 0 ? void 0 : _a.search);
|
|
8618
8619
|
const cascadingEnabled = params.get('cascading') !== null;
|
|
8619
8620
|
if (cascadingEnabled) {
|
|
8620
8621
|
const rawParams = {};
|
|
@@ -9322,7 +9323,7 @@ class Call {
|
|
|
9322
9323
|
* @returns a promise which resolves once the call join-flow has finished.
|
|
9323
9324
|
*/
|
|
9324
9325
|
this.join = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
9325
|
-
var _e;
|
|
9326
|
+
var _e, _f;
|
|
9326
9327
|
const callingState = this.state.callingState;
|
|
9327
9328
|
if ([exports.CallingState.JOINED, exports.CallingState.JOINING].includes(callingState)) {
|
|
9328
9329
|
this.logger('warn', 'Join method called twice, you should only call this once');
|
|
@@ -9363,7 +9364,7 @@ class Call {
|
|
|
9363
9364
|
throw error;
|
|
9364
9365
|
}
|
|
9365
9366
|
// FIXME OL: remove once cascading is implemented
|
|
9366
|
-
if (typeof window !== 'undefined' && window.location.search) {
|
|
9367
|
+
if (typeof window !== 'undefined' && ((_e = window.location) === null || _e === void 0 ? void 0 : _e.search)) {
|
|
9367
9368
|
const params = new URLSearchParams(window.location.search);
|
|
9368
9369
|
sfuServer.url = params.get('sfuUrl') || sfuServer.url;
|
|
9369
9370
|
sfuServer.ws_endpoint = params.get('sfuWsUrl') || sfuServer.ws_endpoint;
|
|
@@ -9509,7 +9510,7 @@ class Call {
|
|
|
9509
9510
|
connectionConfig,
|
|
9510
9511
|
});
|
|
9511
9512
|
}
|
|
9512
|
-
const audioSettings = (
|
|
9513
|
+
const audioSettings = (_f = this.data) === null || _f === void 0 ? void 0 : _f.settings.audio;
|
|
9513
9514
|
const isDtxEnabled = !!(audioSettings === null || audioSettings === void 0 ? void 0 : audioSettings.opus_dtx_enabled);
|
|
9514
9515
|
const isRedEnabled = !!(audioSettings === null || audioSettings === void 0 ? void 0 : audioSettings.redundant_coding_enabled);
|
|
9515
9516
|
if (!this.publisher) {
|
|
@@ -9707,9 +9708,9 @@ class Call {
|
|
|
9707
9708
|
* @param trackType the track type to stop publishing.
|
|
9708
9709
|
*/
|
|
9709
9710
|
this.stopPublish = (trackType) => __awaiter(this, void 0, void 0, function* () {
|
|
9710
|
-
var
|
|
9711
|
+
var _g;
|
|
9711
9712
|
this.logger('info', `stopPublish ${TrackType[trackType]}`);
|
|
9712
|
-
yield ((
|
|
9713
|
+
yield ((_g = this.publisher) === null || _g === void 0 ? void 0 : _g.unpublishStream(trackType));
|
|
9713
9714
|
});
|
|
9714
9715
|
/**
|
|
9715
9716
|
* Update track subscription configuration for one or more participants.
|
|
@@ -9850,8 +9851,8 @@ class Call {
|
|
|
9850
9851
|
* @returns
|
|
9851
9852
|
*/
|
|
9852
9853
|
this.updatePublishQuality = (enabledRids) => __awaiter(this, void 0, void 0, function* () {
|
|
9853
|
-
var
|
|
9854
|
-
return (
|
|
9854
|
+
var _h;
|
|
9855
|
+
return (_h = this.publisher) === null || _h === void 0 ? void 0 : _h.updateVideoPublishQuality(enabledRids);
|
|
9855
9856
|
});
|
|
9856
9857
|
/**
|
|
9857
9858
|
* Sends a reaction to the other call participants.
|
|
@@ -11894,7 +11895,7 @@ class StreamClient {
|
|
|
11894
11895
|
}
|
|
11895
11896
|
getUserAgent() {
|
|
11896
11897
|
return (this.userAgent ||
|
|
11897
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11898
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.29"}`);
|
|
11898
11899
|
}
|
|
11899
11900
|
setUserAgent(userAgent) {
|
|
11900
11901
|
this.userAgent = userAgent;
|