@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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.30](https://github.com/GetStream/stream-video-js/compare/client0.0.29...client0.0.30) (2023-07-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* dont use window search in react native ([4883512](https://github.com/GetStream/stream-video-js/commit/4883512692bf6626b5ac9df6e80384843ec0917d))
|
|
11
|
+
|
|
5
12
|
### [0.0.29](https://github.com/GetStream/stream-video-js/compare/client0.0.28...client0.0.29) (2023-07-03)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -8589,9 +8589,10 @@ const toRtcConfiguration = (config) => {
|
|
|
8589
8589
|
return rtcConfig;
|
|
8590
8590
|
};
|
|
8591
8591
|
const getCascadingModeParams = () => {
|
|
8592
|
+
var _a;
|
|
8592
8593
|
if (typeof window === 'undefined')
|
|
8593
8594
|
return null;
|
|
8594
|
-
const params = new URLSearchParams(window.location.search);
|
|
8595
|
+
const params = new URLSearchParams((_a = window.location) === null || _a === void 0 ? void 0 : _a.search);
|
|
8595
8596
|
const cascadingEnabled = params.get('cascading') !== null;
|
|
8596
8597
|
if (cascadingEnabled) {
|
|
8597
8598
|
const rawParams = {};
|
|
@@ -9299,7 +9300,7 @@ class Call {
|
|
|
9299
9300
|
* @returns a promise which resolves once the call join-flow has finished.
|
|
9300
9301
|
*/
|
|
9301
9302
|
this.join = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
9302
|
-
var _e;
|
|
9303
|
+
var _e, _f;
|
|
9303
9304
|
const callingState = this.state.callingState;
|
|
9304
9305
|
if ([CallingState.JOINED, CallingState.JOINING].includes(callingState)) {
|
|
9305
9306
|
this.logger('warn', 'Join method called twice, you should only call this once');
|
|
@@ -9340,7 +9341,7 @@ class Call {
|
|
|
9340
9341
|
throw error;
|
|
9341
9342
|
}
|
|
9342
9343
|
// FIXME OL: remove once cascading is implemented
|
|
9343
|
-
if (typeof window !== 'undefined' && window.location.search) {
|
|
9344
|
+
if (typeof window !== 'undefined' && ((_e = window.location) === null || _e === void 0 ? void 0 : _e.search)) {
|
|
9344
9345
|
const params = new URLSearchParams(window.location.search);
|
|
9345
9346
|
sfuServer.url = params.get('sfuUrl') || sfuServer.url;
|
|
9346
9347
|
sfuServer.ws_endpoint = params.get('sfuWsUrl') || sfuServer.ws_endpoint;
|
|
@@ -9486,7 +9487,7 @@ class Call {
|
|
|
9486
9487
|
connectionConfig,
|
|
9487
9488
|
});
|
|
9488
9489
|
}
|
|
9489
|
-
const audioSettings = (
|
|
9490
|
+
const audioSettings = (_f = this.data) === null || _f === void 0 ? void 0 : _f.settings.audio;
|
|
9490
9491
|
const isDtxEnabled = !!(audioSettings === null || audioSettings === void 0 ? void 0 : audioSettings.opus_dtx_enabled);
|
|
9491
9492
|
const isRedEnabled = !!(audioSettings === null || audioSettings === void 0 ? void 0 : audioSettings.redundant_coding_enabled);
|
|
9492
9493
|
if (!this.publisher) {
|
|
@@ -9684,9 +9685,9 @@ class Call {
|
|
|
9684
9685
|
* @param trackType the track type to stop publishing.
|
|
9685
9686
|
*/
|
|
9686
9687
|
this.stopPublish = (trackType) => __awaiter(this, void 0, void 0, function* () {
|
|
9687
|
-
var
|
|
9688
|
+
var _g;
|
|
9688
9689
|
this.logger('info', `stopPublish ${TrackType[trackType]}`);
|
|
9689
|
-
yield ((
|
|
9690
|
+
yield ((_g = this.publisher) === null || _g === void 0 ? void 0 : _g.unpublishStream(trackType));
|
|
9690
9691
|
});
|
|
9691
9692
|
/**
|
|
9692
9693
|
* Update track subscription configuration for one or more participants.
|
|
@@ -9827,8 +9828,8 @@ class Call {
|
|
|
9827
9828
|
* @returns
|
|
9828
9829
|
*/
|
|
9829
9830
|
this.updatePublishQuality = (enabledRids) => __awaiter(this, void 0, void 0, function* () {
|
|
9830
|
-
var
|
|
9831
|
-
return (
|
|
9831
|
+
var _h;
|
|
9832
|
+
return (_h = this.publisher) === null || _h === void 0 ? void 0 : _h.updateVideoPublishQuality(enabledRids);
|
|
9832
9833
|
});
|
|
9833
9834
|
/**
|
|
9834
9835
|
* Sends a reaction to the other call participants.
|
|
@@ -11870,7 +11871,7 @@ class StreamClient {
|
|
|
11870
11871
|
}
|
|
11871
11872
|
getUserAgent() {
|
|
11872
11873
|
return (this.userAgent ||
|
|
11873
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11874
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.29"}`);
|
|
11874
11875
|
}
|
|
11875
11876
|
setUserAgent(userAgent) {
|
|
11876
11877
|
this.userAgent = userAgent;
|