@stream-io/video-client 1.27.5 → 1.28.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 +6 -0
- package/dist/index.browser.es.js +27 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +28 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +27 -3
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +6 -1
- package/dist/src/gen/coordinator/index.d.ts +429 -0
- package/package.json +1 -1
- package/src/Call.ts +13 -0
- package/src/gen/coordinator/index.ts +429 -0
- package/src/store/CallState.ts +2 -0
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.28.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.27.5...@stream-io/video-client-1.28.0) (2025-08-21)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Kick user from a call ([#1894](https://github.com/GetStream/stream-video-js/issues/1894)) ([32e2afc](https://github.com/GetStream/stream-video-js/commit/32e2afca0ea59e3f57e1ff9d05828c1e07fbff78))
|
|
10
|
+
|
|
5
11
|
## [1.27.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.27.4...@stream-io/video-client-1.27.5) (2025-08-15)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
package/dist/index.browser.es.js
CHANGED
|
@@ -59,6 +59,20 @@ const FrameRecordingSettingsResponseModeEnum = {
|
|
|
59
59
|
DISABLED: 'disabled',
|
|
60
60
|
AUTO_ON: 'auto-on',
|
|
61
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
const IngressAudioEncodingOptionsRequestChannelsEnum = {
|
|
66
|
+
NUMBER_1: 1,
|
|
67
|
+
NUMBER_2: 2,
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
const IngressVideoLayerRequestCodecEnum = {
|
|
73
|
+
H264: 'h264',
|
|
74
|
+
VP8: 'vp8',
|
|
75
|
+
};
|
|
62
76
|
/**
|
|
63
77
|
* @export
|
|
64
78
|
*/
|
|
@@ -91,6 +105,7 @@ const OwnCapability = {
|
|
|
91
105
|
JOIN_BACKSTAGE: 'join-backstage',
|
|
92
106
|
JOIN_CALL: 'join-call',
|
|
93
107
|
JOIN_ENDED_CALL: 'join-ended-call',
|
|
108
|
+
KICK_USER: 'kick-user',
|
|
94
109
|
MUTE_USERS: 'mute-users',
|
|
95
110
|
PIN_FOR_EVERYONE: 'pin-for-everyone',
|
|
96
111
|
READ_CALL: 'read-call',
|
|
@@ -5287,6 +5302,7 @@ class CallState {
|
|
|
5287
5302
|
this.eventHandlers = {
|
|
5288
5303
|
// these events are not updating the call state:
|
|
5289
5304
|
'call.frame_recording_ready': undefined,
|
|
5305
|
+
'call.kicked_user': undefined,
|
|
5290
5306
|
'call.moderation_blur': undefined,
|
|
5291
5307
|
'call.moderation_warning': undefined,
|
|
5292
5308
|
'call.permission_request': undefined,
|
|
@@ -5296,6 +5312,7 @@ class CallState {
|
|
|
5296
5312
|
'call.rtmp_broadcast_stopped': undefined,
|
|
5297
5313
|
'call.stats_report_ready': undefined,
|
|
5298
5314
|
'call.transcription_ready': undefined,
|
|
5315
|
+
'call.user_feedback_submitted': undefined,
|
|
5299
5316
|
'call.user_muted': undefined,
|
|
5300
5317
|
'connection.error': undefined,
|
|
5301
5318
|
'connection.ok': undefined,
|
|
@@ -5636,7 +5653,7 @@ const getSdkVersion = (sdk) => {
|
|
|
5636
5653
|
return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
|
|
5637
5654
|
};
|
|
5638
5655
|
|
|
5639
|
-
const version = "1.
|
|
5656
|
+
const version = "1.28.0";
|
|
5640
5657
|
const [major, minor, patch] = version.split('.');
|
|
5641
5658
|
let sdkInfo = {
|
|
5642
5659
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -12787,6 +12804,13 @@ class Call {
|
|
|
12787
12804
|
user_id: userId,
|
|
12788
12805
|
});
|
|
12789
12806
|
};
|
|
12807
|
+
/**
|
|
12808
|
+
* Kicks the user with the given `userId`.
|
|
12809
|
+
* @param data the kick request.
|
|
12810
|
+
*/
|
|
12811
|
+
this.kickUser = async (data) => {
|
|
12812
|
+
return this.streamClient.post(`${this.streamClientBasePath}/kick`, data);
|
|
12813
|
+
};
|
|
12790
12814
|
/**
|
|
12791
12815
|
* Mutes the current user.
|
|
12792
12816
|
*
|
|
@@ -14538,7 +14562,7 @@ class StreamClient {
|
|
|
14538
14562
|
this.getUserAgent = () => {
|
|
14539
14563
|
if (!this.cachedUserAgent) {
|
|
14540
14564
|
const { clientAppIdentifier = {} } = this.options;
|
|
14541
|
-
const { sdkName = 'js', sdkVersion = "1.
|
|
14565
|
+
const { sdkName = 'js', sdkVersion = "1.28.0", ...extras } = clientAppIdentifier;
|
|
14542
14566
|
this.cachedUserAgent = [
|
|
14543
14567
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
14544
14568
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|
|
@@ -15103,5 +15127,5 @@ class StreamVideoClient {
|
|
|
15103
15127
|
}
|
|
15104
15128
|
StreamVideoClient._instances = new Map();
|
|
15105
15129
|
|
|
15106
|
-
export { AudioSettingsRequestDefaultDeviceEnum, AudioSettingsResponseDefaultDeviceEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CameraManager, CameraManagerState, CreateDeviceRequestPushProviderEnum, DebounceType, DynascaleManager, ErrorFromResponse, FrameRecordingSettingsRequestModeEnum, FrameRecordingSettingsRequestQualityEnum, FrameRecordingSettingsResponseModeEnum, InputMediaDeviceManager, InputMediaDeviceManagerState, LayoutSettingsRequestNameEnum, MicrophoneManager, MicrophoneManagerState, NoiseCancellationSettingsModeEnum, OwnCapability, RNSpeechDetector, RTMPBroadcastRequestQualityEnum, RTMPSettingsRequestQualityEnum, RecordSettingsRequestModeEnum, RecordSettingsRequestQualityEnum, rxUtils as RxUtils, ScreenShareManager, ScreenShareState, events as SfuEvents, models as SfuModels, SpeakerManager, SpeakerState, StartClosedCaptionsRequestLanguageEnum, StartTranscriptionRequestLanguageEnum, 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, getDeviceState, getLogLevel, getLogger, getScreenShareStream, getSdkInfo, getVideoBrowserPermission, getVideoDevices, getVideoStream, getWebRTCInfo, hasAudio, hasPausedTrack, hasScreenShare, hasScreenShareAudio, hasVideo, isPinned, livestreamOrAudioRoomSortPreset, logLevels, logToConsole, name, noopComparator, paginatedLayoutSortPreset, pinned, publishingAudio, publishingVideo, reactionType, resolveDeviceId, role, screenSharing, setDeviceInfo, setLogLevel, setLogger, setOSInfo, setPowerState, setSdkInfo, setThermalState, setWebRTCInfo, speakerLayoutSortPreset, speaking };
|
|
15130
|
+
export { AudioSettingsRequestDefaultDeviceEnum, AudioSettingsResponseDefaultDeviceEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CameraManager, CameraManagerState, CreateDeviceRequestPushProviderEnum, DebounceType, DynascaleManager, ErrorFromResponse, FrameRecordingSettingsRequestModeEnum, FrameRecordingSettingsRequestQualityEnum, FrameRecordingSettingsResponseModeEnum, IngressAudioEncodingOptionsRequestChannelsEnum, IngressVideoLayerRequestCodecEnum, InputMediaDeviceManager, InputMediaDeviceManagerState, LayoutSettingsRequestNameEnum, MicrophoneManager, MicrophoneManagerState, NoiseCancellationSettingsModeEnum, OwnCapability, RNSpeechDetector, RTMPBroadcastRequestQualityEnum, RTMPSettingsRequestQualityEnum, RecordSettingsRequestModeEnum, RecordSettingsRequestQualityEnum, rxUtils as RxUtils, ScreenShareManager, ScreenShareState, events as SfuEvents, models as SfuModels, SpeakerManager, SpeakerState, StartClosedCaptionsRequestLanguageEnum, StartTranscriptionRequestLanguageEnum, 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, getDeviceState, getLogLevel, getLogger, getScreenShareStream, getSdkInfo, getVideoBrowserPermission, getVideoDevices, getVideoStream, getWebRTCInfo, hasAudio, hasPausedTrack, hasScreenShare, hasScreenShareAudio, hasVideo, isPinned, livestreamOrAudioRoomSortPreset, logLevels, logToConsole, name, noopComparator, paginatedLayoutSortPreset, pinned, publishingAudio, publishingVideo, reactionType, resolveDeviceId, role, screenSharing, setDeviceInfo, setLogLevel, setLogger, setOSInfo, setPowerState, setSdkInfo, setThermalState, setWebRTCInfo, speakerLayoutSortPreset, speaking };
|
|
15107
15131
|
//# sourceMappingURL=index.browser.es.js.map
|