@stream-io/video-client 1.36.1 → 1.37.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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.37.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.36.1...@stream-io/video-client-1.37.0) (2025-11-14)
6
+
7
+ ### Features
8
+
9
+ - ring individual members ([#1755](https://github.com/GetStream/stream-video-js/issues/1755)) ([57564d6](https://github.com/GetStream/stream-video-js/commit/57564d63f21da7b95b582f74c88b24af7e77659c))
10
+
5
11
  ## [1.36.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.36.0...@stream-io/video-client-1.36.1) (2025-11-12)
6
12
 
7
13
  - enforce the client to publish options on SDP level ([#1976](https://github.com/GetStream/stream-video-js/issues/1976)) ([1d93f72](https://github.com/GetStream/stream-video-js/commit/1d93f72cb4395aaf9b487eb66e0c3b6a8111aca4))
@@ -52,7 +52,6 @@ const FrameRecordingSettingsRequestQualityEnum = {
52
52
  _720P: '720p',
53
53
  _1080P: '1080p',
54
54
  _1440P: '1440p',
55
- _2160P: '2160p',
56
55
  };
57
56
  /**
58
57
  * @export
@@ -148,13 +147,11 @@ const RTMPBroadcastRequestQualityEnum = {
148
147
  _720P: '720p',
149
148
  _1080P: '1080p',
150
149
  _1440P: '1440p',
151
- _2160P: '2160p',
152
150
  PORTRAIT_360X640: 'portrait-360x640',
153
151
  PORTRAIT_480X854: 'portrait-480x854',
154
152
  PORTRAIT_720X1280: 'portrait-720x1280',
155
153
  PORTRAIT_1080X1920: 'portrait-1080x1920',
156
154
  PORTRAIT_1440X2560: 'portrait-1440x2560',
157
- PORTRAIT_2160X3840: 'portrait-2160x3840',
158
155
  };
159
156
  /**
160
157
  * @export
@@ -165,13 +162,11 @@ const RTMPSettingsRequestQualityEnum = {
165
162
  _720P: '720p',
166
163
  _1080P: '1080p',
167
164
  _1440P: '1440p',
168
- _2160P: '2160p',
169
165
  PORTRAIT_360X640: 'portrait-360x640',
170
166
  PORTRAIT_480X854: 'portrait-480x854',
171
167
  PORTRAIT_720X1280: 'portrait-720x1280',
172
168
  PORTRAIT_1080X1920: 'portrait-1080x1920',
173
169
  PORTRAIT_1440X2560: 'portrait-1440x2560',
174
- PORTRAIT_2160X3840: 'portrait-2160x3840',
175
170
  };
176
171
  /**
177
172
  * @export
@@ -190,13 +185,11 @@ const RecordSettingsRequestQualityEnum = {
190
185
  _720P: '720p',
191
186
  _1080P: '1080p',
192
187
  _1440P: '1440p',
193
- _2160P: '2160p',
194
188
  PORTRAIT_360X640: 'portrait-360x640',
195
189
  PORTRAIT_480X854: 'portrait-480x854',
196
190
  PORTRAIT_720X1280: 'portrait-720x1280',
197
191
  PORTRAIT_1080X1920: 'portrait-1080x1920',
198
192
  PORTRAIT_1440X2560: 'portrait-1440x2560',
199
- PORTRAIT_2160X3840: 'portrait-2160x3840',
200
193
  };
201
194
  /**
202
195
  * @export
@@ -5976,7 +5969,7 @@ const getSdkVersion = (sdk) => {
5976
5969
  return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
5977
5970
  };
5978
5971
 
5979
- const version = "1.36.1";
5972
+ const version = "1.37.0";
5980
5973
  const [major, minor, patch] = version.split('.');
5981
5974
  let sdkInfo = {
5982
5975
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -12105,6 +12098,7 @@ class Call {
12105
12098
  * @param params.ring if set to true, a `call.ring` event will be sent to the call members.
12106
12099
  * @param params.notify if set to true, a `call.notification` event will be sent to the call members.
12107
12100
  * @param params.members_limit the total number of members to return as part of the response.
12101
+ * @param params.video if set to true, in a ringing scenario, mobile SDKs will show "incoming video call", audio only otherwise.
12108
12102
  */
12109
12103
  this.get = async (params) => {
12110
12104
  await this.setup();
@@ -12158,11 +12152,11 @@ class Call {
12158
12152
  return this.streamClient.post(`${this.streamClientBasePath}/delete`, data);
12159
12153
  };
12160
12154
  /**
12161
- * A shortcut for {@link Call.get} with `ring` parameter set to `true`.
12162
- * Will send a `call.ring` event to the call members.
12155
+ * Sends a ring notification to the provided users who are not already in the call.
12156
+ * All users should be members of the call.
12163
12157
  */
12164
- this.ring = async () => {
12165
- return await this.get({ ring: true });
12158
+ this.ring = async (data = {}) => {
12159
+ return this.streamClient.post(`${this.streamClientBasePath}/ring`, data);
12166
12160
  };
12167
12161
  /**
12168
12162
  * A shortcut for {@link Call.get} with `notify` parameter set to `true`.
@@ -14879,7 +14873,7 @@ class StreamClient {
14879
14873
  this.getUserAgent = () => {
14880
14874
  if (!this.cachedUserAgent) {
14881
14875
  const { clientAppIdentifier = {} } = this.options;
14882
- const { sdkName = 'js', sdkVersion = "1.36.1", ...extras } = clientAppIdentifier;
14876
+ const { sdkName = 'js', sdkVersion = "1.37.0", ...extras } = clientAppIdentifier;
14883
14877
  this.cachedUserAgent = [
14884
14878
  `stream-video-${sdkName}-v${sdkVersion}`,
14885
14879
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
@@ -15099,10 +15093,6 @@ class StreamVideoClient {
15099
15093
  * @param e the event.
15100
15094
  */
15101
15095
  this.initCallFromEvent = async (e) => {
15102
- if (this.state.connectedUser?.id === e.call.created_by.id) {
15103
- this.logger.debug(`Ignoring ${e.type} event sent by the current user`);
15104
- return;
15105
- }
15106
15096
  try {
15107
15097
  const concurrencyTag = getCallInitConcurrencyTag(e.call_cid);
15108
15098
  await withoutConcurrency(concurrencyTag, async () => {
@@ -15416,12 +15406,12 @@ class StreamVideoClient {
15416
15406
  this.shouldRejectCall = (currentCallId) => {
15417
15407
  if (!this.rejectCallWhenBusy)
15418
15408
  return false;
15419
- const hasOngoingRingingCall = this.state.calls.some((c) => c.cid !== currentCallId &&
15409
+ return this.state.calls.some((c) => c.cid !== currentCallId &&
15420
15410
  c.ringing &&
15411
+ !c.isCreatedByMe &&
15421
15412
  c.state.callingState !== CallingState.IDLE &&
15422
15413
  c.state.callingState !== CallingState.LEFT &&
15423
15414
  c.state.callingState !== CallingState.RECONNECTING_FAILED);
15424
- return hasOngoingRingingCall;
15425
15415
  };
15426
15416
  const apiKey = typeof apiKeyOrArgs === 'string' ? apiKeyOrArgs : apiKeyOrArgs.apiKey;
15427
15417
  const clientOptions = typeof apiKeyOrArgs === 'string' ? opts : apiKeyOrArgs.options;