@stream-io/video-client 1.15.7 → 1.16.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,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.16.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.15.7...@stream-io/video-client-1.16.0) (2025-01-31)
6
+
7
+
8
+ ### Features
9
+
10
+ * OpenAPI upgrades and HLS status reporting ([#1668](https://github.com/GetStream/stream-video-js/issues/1668)) ([2f377b8](https://github.com/GetStream/stream-video-js/commit/2f377b8772f7b9fc8fcb8b8e9b3eecb1920bc7d0))
11
+
5
12
  ## [1.15.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.15.6...@stream-io/video-client-1.15.7) (2025-01-29)
6
13
 
7
14
 
@@ -8,8 +8,6 @@ import { ReplaySubject, combineLatest, BehaviorSubject, map, shareReplay, distin
8
8
  import { parse } from 'sdp-transform';
9
9
  import { UAParser } from 'ua-parser-js';
10
10
 
11
- /* tslint:disable */
12
- /* eslint-disable */
13
11
  /**
14
12
  * @export
15
13
  */
@@ -24,80 +22,6 @@ const AudioSettingsResponseDefaultDeviceEnum = {
24
22
  SPEAKER: 'speaker',
25
23
  EARPIECE: 'earpiece',
26
24
  };
27
- /**
28
- * @export
29
- */
30
- const BlockListOptionsBehaviorEnum = {
31
- FLAG: 'flag',
32
- BLOCK: 'block',
33
- SHADOW_BLOCK: 'shadow_block',
34
- };
35
- /**
36
- * @export
37
- */
38
- const ChannelConfigWithInfoAutomodEnum = {
39
- DISABLED: 'disabled',
40
- SIMPLE: 'simple',
41
- AI: 'AI',
42
- };
43
- /**
44
- * @export
45
- */
46
- const ChannelConfigWithInfoAutomodBehaviorEnum = {
47
- FLAG: 'flag',
48
- BLOCK: 'block',
49
- SHADOW_BLOCK: 'shadow_block',
50
- };
51
- /**
52
- * @export
53
- */
54
- const ChannelConfigWithInfoBlocklistBehaviorEnum = {
55
- FLAG: 'flag',
56
- BLOCK: 'block',
57
- SHADOW_BLOCK: 'shadow_block',
58
- };
59
- /**
60
- * All possibility of string to use
61
- * @export
62
- */
63
- const ChannelOwnCapability = {
64
- BAN_CHANNEL_MEMBERS: 'ban-channel-members',
65
- CAST_POLL_VOTE: 'cast-poll-vote',
66
- CONNECT_EVENTS: 'connect-events',
67
- CREATE_ATTACHMENT: 'create-attachment',
68
- CREATE_CALL: 'create-call',
69
- DELETE_ANY_MESSAGE: 'delete-any-message',
70
- DELETE_CHANNEL: 'delete-channel',
71
- DELETE_OWN_MESSAGE: 'delete-own-message',
72
- FLAG_MESSAGE: 'flag-message',
73
- FREEZE_CHANNEL: 'freeze-channel',
74
- JOIN_CALL: 'join-call',
75
- JOIN_CHANNEL: 'join-channel',
76
- LEAVE_CHANNEL: 'leave-channel',
77
- MUTE_CHANNEL: 'mute-channel',
78
- PIN_MESSAGE: 'pin-message',
79
- QUERY_POLL_VOTES: 'query-poll-votes',
80
- QUOTE_MESSAGE: 'quote-message',
81
- READ_EVENTS: 'read-events',
82
- SEARCH_MESSAGES: 'search-messages',
83
- SEND_CUSTOM_EVENTS: 'send-custom-events',
84
- SEND_LINKS: 'send-links',
85
- SEND_MESSAGE: 'send-message',
86
- SEND_POLL: 'send-poll',
87
- SEND_REACTION: 'send-reaction',
88
- SEND_REPLY: 'send-reply',
89
- SEND_TYPING_EVENTS: 'send-typing-events',
90
- SET_CHANNEL_COOLDOWN: 'set-channel-cooldown',
91
- SKIP_SLOW_MODE: 'skip-slow-mode',
92
- SLOW_MODE: 'slow-mode',
93
- TYPING_EVENTS: 'typing-events',
94
- UPDATE_ANY_MESSAGE: 'update-any-message',
95
- UPDATE_CHANNEL: 'update-channel',
96
- UPDATE_CHANNEL_MEMBERS: 'update-channel-members',
97
- UPDATE_OWN_MESSAGE: 'update-own-message',
98
- UPDATE_THREAD: 'update-thread',
99
- UPLOAD_FILE: 'upload-file',
100
- };
101
25
  /**
102
26
  * @export
103
27
  */
@@ -107,6 +31,16 @@ const CreateDeviceRequestPushProviderEnum = {
107
31
  HUAWEI: 'huawei',
108
32
  XIAOMI: 'xiaomi',
109
33
  };
34
+ /**
35
+ * @export
36
+ */
37
+ const LayoutSettingsRequestNameEnum = {
38
+ SPOTLIGHT: 'spotlight',
39
+ GRID: 'grid',
40
+ SINGLE_PARTICIPANT: 'single-participant',
41
+ MOBILE: 'mobile',
42
+ CUSTOM: 'custom',
43
+ };
110
44
  /**
111
45
  * @export
112
46
  */
@@ -149,6 +83,36 @@ const OwnCapability = {
149
83
  UPDATE_CALL_PERMISSIONS: 'update-call-permissions',
150
84
  UPDATE_CALL_SETTINGS: 'update-call-settings',
151
85
  };
86
+ /**
87
+ * @export
88
+ */
89
+ const RTMPBroadcastRequestQualityEnum = {
90
+ _360P: '360p',
91
+ _480P: '480p',
92
+ _720P: '720p',
93
+ _1080P: '1080p',
94
+ _1440P: '1440p',
95
+ PORTRAIT_360X640: 'portrait-360x640',
96
+ PORTRAIT_480X854: 'portrait-480x854',
97
+ PORTRAIT_720X1280: 'portrait-720x1280',
98
+ PORTRAIT_1080X1920: 'portrait-1080x1920',
99
+ PORTRAIT_1440X2560: 'portrait-1440x2560',
100
+ };
101
+ /**
102
+ * @export
103
+ */
104
+ const RTMPSettingsRequestQualityEnum = {
105
+ _360P: '360p',
106
+ _480P: '480p',
107
+ _720P: '720p',
108
+ _1080P: '1080p',
109
+ _1440P: '1440p',
110
+ PORTRAIT_360X640: 'portrait-360x640',
111
+ PORTRAIT_480X854: 'portrait-480x854',
112
+ PORTRAIT_720X1280: 'portrait-720x1280',
113
+ PORTRAIT_1080X1920: 'portrait-1080x1920',
114
+ PORTRAIT_1440X2560: 'portrait-1440x2560',
115
+ };
152
116
  /**
153
117
  * @export
154
118
  */
@@ -180,6 +144,44 @@ const TranscriptionSettingsRequestClosedCaptionModeEnum = {
180
144
  DISABLED: 'disabled',
181
145
  AUTO_ON: 'auto-on',
182
146
  };
147
+ /**
148
+ * @export
149
+ */
150
+ const TranscriptionSettingsRequestLanguageEnum = {
151
+ AUTO: 'auto',
152
+ EN: 'en',
153
+ FR: 'fr',
154
+ ES: 'es',
155
+ DE: 'de',
156
+ IT: 'it',
157
+ NL: 'nl',
158
+ PT: 'pt',
159
+ PL: 'pl',
160
+ CA: 'ca',
161
+ CS: 'cs',
162
+ DA: 'da',
163
+ EL: 'el',
164
+ FI: 'fi',
165
+ ID: 'id',
166
+ JA: 'ja',
167
+ RU: 'ru',
168
+ SV: 'sv',
169
+ TA: 'ta',
170
+ TH: 'th',
171
+ TR: 'tr',
172
+ HU: 'hu',
173
+ RO: 'ro',
174
+ ZH: 'zh',
175
+ AR: 'ar',
176
+ TL: 'tl',
177
+ HE: 'he',
178
+ HI: 'hi',
179
+ HR: 'hr',
180
+ KO: 'ko',
181
+ MS: 'ms',
182
+ NO: 'no',
183
+ UK: 'uk',
184
+ };
183
185
  /**
184
186
  * @export
185
187
  */
@@ -196,6 +198,44 @@ const TranscriptionSettingsResponseClosedCaptionModeEnum = {
196
198
  DISABLED: 'disabled',
197
199
  AUTO_ON: 'auto-on',
198
200
  };
201
+ /**
202
+ * @export
203
+ */
204
+ const TranscriptionSettingsResponseLanguageEnum = {
205
+ AUTO: 'auto',
206
+ EN: 'en',
207
+ FR: 'fr',
208
+ ES: 'es',
209
+ DE: 'de',
210
+ IT: 'it',
211
+ NL: 'nl',
212
+ PT: 'pt',
213
+ PL: 'pl',
214
+ CA: 'ca',
215
+ CS: 'cs',
216
+ DA: 'da',
217
+ EL: 'el',
218
+ FI: 'fi',
219
+ ID: 'id',
220
+ JA: 'ja',
221
+ RU: 'ru',
222
+ SV: 'sv',
223
+ TA: 'ta',
224
+ TH: 'th',
225
+ TR: 'tr',
226
+ HU: 'hu',
227
+ RO: 'ro',
228
+ ZH: 'zh',
229
+ AR: 'ar',
230
+ TL: 'tl',
231
+ HE: 'he',
232
+ HI: 'hi',
233
+ HR: 'hr',
234
+ KO: 'ko',
235
+ MS: 'ms',
236
+ NO: 'no',
237
+ UK: 'uk',
238
+ };
199
239
  /**
200
240
  * @export
201
241
  */
@@ -4183,7 +4223,7 @@ const livestreamOrAudioRoomSortPreset = combineComparators(ifInvisibleBy(combine
4183
4223
  */
4184
4224
  const defaultEgress = {
4185
4225
  broadcasting: false,
4186
- hls: { playlist_url: '' },
4226
+ hls: { playlist_url: '', status: '' },
4187
4227
  rtmps: [],
4188
4228
  };
4189
4229
  /**
@@ -4646,21 +4686,19 @@ class CallState {
4646
4686
  this.setCurrentValue(this.egressSubject, (egress = defaultEgress) => ({
4647
4687
  ...egress,
4648
4688
  broadcasting: false,
4689
+ hls: {
4690
+ ...egress.hls,
4691
+ status: '',
4692
+ },
4649
4693
  }));
4650
4694
  };
4651
4695
  this.updateFromHLSBroadcastingFailed = () => {
4652
4696
  this.setCurrentValue(this.egressSubject, (egress = defaultEgress) => ({
4653
4697
  ...egress,
4654
4698
  broadcasting: false,
4655
- }));
4656
- };
4657
- this.updateFromHLSBroadcastStarted = (event) => {
4658
- this.setCurrentValue(this.egressSubject, (egress = defaultEgress) => ({
4659
- ...egress,
4660
- broadcasting: true,
4661
4699
  hls: {
4662
4700
  ...egress.hls,
4663
- playlist_url: event.hls_playlist_url,
4701
+ status: '',
4664
4702
  },
4665
4703
  }));
4666
4704
  };
@@ -4871,21 +4909,16 @@ class CallState {
4871
4909
  this.captioning$ = duc(this.captioningSubject);
4872
4910
  this.eventHandlers = {
4873
4911
  // these events are not updating the call state:
4874
- 'call.deleted': undefined,
4875
4912
  'call.permission_request': undefined,
4876
4913
  'call.recording_ready': undefined,
4914
+ 'call.rtmp_broadcast_failed': undefined,
4915
+ 'call.rtmp_broadcast_started': undefined,
4916
+ 'call.rtmp_broadcast_stopped': undefined,
4877
4917
  'call.transcription_ready': undefined,
4878
4918
  'call.user_muted': undefined,
4879
4919
  'connection.error': undefined,
4880
4920
  'connection.ok': undefined,
4881
4921
  'health.check': undefined,
4882
- 'user.banned': undefined,
4883
- 'user.deactivated': undefined,
4884
- 'user.deleted': undefined,
4885
- 'user.muted': undefined,
4886
- 'user.presence.changed': undefined,
4887
- 'user.reactivated': undefined,
4888
- 'user.unbanned': undefined,
4889
4922
  'user.updated': undefined,
4890
4923
  custom: undefined,
4891
4924
  // events that update call state:
@@ -4902,12 +4935,15 @@ class CallState {
4902
4935
  this.setCurrentValue(this.captioningSubject, false);
4903
4936
  },
4904
4937
  'call.created': (e) => this.updateFromCallResponse(e.call),
4938
+ 'call.deleted': (e) => this.updateFromCallResponse(e.call),
4905
4939
  'call.ended': (e) => {
4906
4940
  this.updateFromCallResponse(e.call);
4907
4941
  this.setCurrentValue(this.endedBySubject, e.user);
4908
4942
  },
4909
4943
  'call.hls_broadcasting_failed': this.updateFromHLSBroadcastingFailed,
4910
- 'call.hls_broadcasting_started': this.updateFromHLSBroadcastStarted,
4944
+ 'call.hls_broadcasting_started': (e) => {
4945
+ this.updateFromCallResponse(e.call);
4946
+ },
4911
4947
  'call.hls_broadcasting_stopped': this.updateFromHLSBroadcastStopped,
4912
4948
  'call.live_started': (e) => this.updateFromCallResponse(e.call),
4913
4949
  'call.member_added': this.updateFromMemberAdded,
@@ -7356,7 +7392,7 @@ const aggregate = (stats) => {
7356
7392
  return report;
7357
7393
  };
7358
7394
 
7359
- const version = "1.15.7";
7395
+ const version = "1.16.0";
7360
7396
  const [major, minor, patch] = version.split('.');
7361
7397
  let sdkInfo = {
7362
7398
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -10410,6 +10446,12 @@ class Call {
10410
10446
  this.create = async (data) => {
10411
10447
  return this.getOrCreate(data);
10412
10448
  };
10449
+ /**
10450
+ * Deletes the call.
10451
+ */
10452
+ this.delete = async (data = {}) => {
10453
+ return this.streamClient.post(`${this.streamClientBasePath}/delete`, data);
10454
+ };
10413
10455
  /**
10414
10456
  * A shortcut for {@link Call.get} with `ring` parameter set to `true`.
10415
10457
  * Will send a `call.ring` event to the call members.
@@ -11420,8 +11462,8 @@ class Call {
11420
11462
  /**
11421
11463
  * Stops the livestreaming of the call.
11422
11464
  */
11423
- this.stopLive = async () => {
11424
- return this.streamClient.post(`${this.streamClientBasePath}/stop_live`, {});
11465
+ this.stopLive = async (data = {}) => {
11466
+ return this.streamClient.post(`${this.streamClientBasePath}/stop_live`, data);
11425
11467
  };
11426
11468
  /**
11427
11469
  * Starts the broadcasting of the call.
@@ -11435,6 +11477,24 @@ class Call {
11435
11477
  this.stopHLS = async () => {
11436
11478
  return this.streamClient.post(`${this.streamClientBasePath}/stop_broadcasting`, {});
11437
11479
  };
11480
+ /**
11481
+ * Starts the RTMP-out broadcasting of the call.
11482
+ */
11483
+ this.startRTMPBroadcasts = async (data) => {
11484
+ return this.streamClient.post(`${this.streamClientBasePath}/rtmp_broadcasts`, data);
11485
+ };
11486
+ /**
11487
+ * Stops all RTMP-out broadcasting of the call.
11488
+ */
11489
+ this.stopAllRTMPBroadcasts = async () => {
11490
+ return this.streamClient.post(`${this.streamClientBasePath}/rtmp_broadcasts/stop`);
11491
+ };
11492
+ /**
11493
+ * Stops the RTMP-out broadcasting of the call specified by it's name.
11494
+ */
11495
+ this.stopRTMPBroadcast = async (name) => {
11496
+ return this.streamClient.post(`${this.streamClientBasePath}/rtmp_broadcasts/${name}/stop`);
11497
+ };
11438
11498
  /**
11439
11499
  * Updates the call settings or custom data.
11440
11500
  *
@@ -12915,7 +12975,7 @@ class StreamClient {
12915
12975
  return await this.wsConnection.connect(this.defaultWSTimeout);
12916
12976
  };
12917
12977
  this.getUserAgent = () => {
12918
- const version = "1.15.7";
12978
+ const version = "1.16.0";
12919
12979
  return (this.userAgent ||
12920
12980
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
12921
12981
  };
@@ -13424,5 +13484,5 @@ class StreamVideoClient {
13424
13484
  }
13425
13485
  StreamVideoClient._instanceMap = new Map();
13426
13486
 
13427
- export { AudioSettingsRequestDefaultDeviceEnum, AudioSettingsResponseDefaultDeviceEnum, BlockListOptionsBehaviorEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CameraManager, CameraManagerState, ChannelConfigWithInfoAutomodBehaviorEnum, ChannelConfigWithInfoAutomodEnum, ChannelConfigWithInfoBlocklistBehaviorEnum, ChannelOwnCapability, CreateDeviceRequestPushProviderEnum, DebounceType, DynascaleManager, ErrorFromResponse, InputMediaDeviceManager, InputMediaDeviceManagerState, MicrophoneManager, MicrophoneManagerState, NoiseCancellationSettingsModeEnum, OwnCapability, RecordSettingsRequestModeEnum, RecordSettingsRequestQualityEnum, rxUtils as RxUtils, ScreenShareManager, ScreenShareState, events as SfuEvents, models as SfuModels, SpeakerManager, SpeakerState, StreamSfuClient, StreamVideoClient, StreamVideoReadOnlyStateStore, StreamVideoWriteableStateStore, TranscriptionSettingsRequestClosedCaptionModeEnum, TranscriptionSettingsRequestModeEnum, TranscriptionSettingsResponseClosedCaptionModeEnum, TranscriptionSettingsResponseModeEnum, VideoSettingsRequestCameraFacingEnum, VideoSettingsResponseCameraFacingEnum, ViewportTracker, VisibilityState, checkIfAudioOutputChangeSupported, combineComparators, conditional, createSoundDetector, defaultSortPreset, descending, deviceIds$, disposeOfMediaStream, dominantSpeaker, getAudioBrowserPermission, getAudioDevices, getAudioOutputDevices, getAudioStream, getClientDetails, getDeviceInfo, getDeviceState, getLogLevel, getLogger, getOSInfo, getScreenShareStream, getSdkInfo, getVideoBrowserPermission, getVideoDevices, getVideoStream, getWebRTCInfo, hasAudio, hasScreenShare, hasScreenShareAudio, hasVideo, isPinned, livestreamOrAudioRoomSortPreset, logLevels, logToConsole, name, noopComparator, paginatedLayoutSortPreset, pinned, publishingAudio, publishingVideo, reactionType, role, screenSharing, setDeviceInfo, setLogLevel, setLogger, setOSInfo, setPowerState, setSdkInfo, setThermalState, setWebRTCInfo, speakerLayoutSortPreset, speaking };
13487
+ export { AudioSettingsRequestDefaultDeviceEnum, AudioSettingsResponseDefaultDeviceEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CameraManager, CameraManagerState, CreateDeviceRequestPushProviderEnum, DebounceType, DynascaleManager, ErrorFromResponse, InputMediaDeviceManager, InputMediaDeviceManagerState, LayoutSettingsRequestNameEnum, MicrophoneManager, MicrophoneManagerState, NoiseCancellationSettingsModeEnum, OwnCapability, RTMPBroadcastRequestQualityEnum, RTMPSettingsRequestQualityEnum, RecordSettingsRequestModeEnum, RecordSettingsRequestQualityEnum, rxUtils as RxUtils, ScreenShareManager, ScreenShareState, events as SfuEvents, models as SfuModels, SpeakerManager, SpeakerState, StreamSfuClient, StreamVideoClient, StreamVideoReadOnlyStateStore, StreamVideoWriteableStateStore, TranscriptionSettingsRequestClosedCaptionModeEnum, TranscriptionSettingsRequestLanguageEnum, TranscriptionSettingsRequestModeEnum, TranscriptionSettingsResponseClosedCaptionModeEnum, TranscriptionSettingsResponseLanguageEnum, TranscriptionSettingsResponseModeEnum, VideoSettingsRequestCameraFacingEnum, VideoSettingsResponseCameraFacingEnum, ViewportTracker, VisibilityState, checkIfAudioOutputChangeSupported, combineComparators, conditional, createSoundDetector, defaultSortPreset, descending, deviceIds$, disposeOfMediaStream, dominantSpeaker, getAudioBrowserPermission, getAudioDevices, getAudioOutputDevices, getAudioStream, getClientDetails, getDeviceInfo, getDeviceState, getLogLevel, getLogger, getOSInfo, getScreenShareStream, getSdkInfo, getVideoBrowserPermission, getVideoDevices, getVideoStream, getWebRTCInfo, hasAudio, hasScreenShare, hasScreenShareAudio, hasVideo, isPinned, livestreamOrAudioRoomSortPreset, logLevels, logToConsole, name, noopComparator, paginatedLayoutSortPreset, pinned, publishingAudio, publishingVideo, reactionType, role, screenSharing, setDeviceInfo, setLogLevel, setLogger, setOSInfo, setPowerState, setSdkInfo, setThermalState, setWebRTCInfo, speakerLayoutSortPreset, speaking };
13428
13488
  //# sourceMappingURL=index.browser.es.js.map