@stream-io/video-client 1.16.2 → 1.16.3
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 +36 -17
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +37 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +36 -17
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +11 -6
- package/dist/src/gen/coordinator/index.d.ts +122 -7
- package/package.json +1 -1
- package/src/Call.ts +29 -23
- package/src/gen/coordinator/index.ts +128 -7
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.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.16.2...@stream-io/video-client-1.16.3) (2025-02-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* relaxed validation for submitting feedback ([#1673](https://github.com/GetStream/stream-video-js/issues/1673)) ([98685b9](https://github.com/GetStream/stream-video-js/commit/98685b9fcf3c3b0309a7072d51cde4657e028528))
|
|
11
|
+
|
|
5
12
|
## [1.16.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.16.1...@stream-io/video-client-1.16.2) (2025-02-05)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -31,6 +31,22 @@ const CreateDeviceRequestPushProviderEnum = {
|
|
|
31
31
|
HUAWEI: 'huawei',
|
|
32
32
|
XIAOMI: 'xiaomi',
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
const FrameRecordingSettingsRequestModeEnum = {
|
|
38
|
+
AVAILABLE: 'available',
|
|
39
|
+
DISABLED: 'disabled',
|
|
40
|
+
AUTO_ON: 'auto-on',
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
const FrameRecordingSettingsResponseModeEnum = {
|
|
46
|
+
AVAILABLE: 'available',
|
|
47
|
+
DISABLED: 'disabled',
|
|
48
|
+
AUTO_ON: 'auto-on',
|
|
49
|
+
};
|
|
34
50
|
/**
|
|
35
51
|
* @export
|
|
36
52
|
*/
|
|
@@ -72,10 +88,12 @@ const OwnCapability = {
|
|
|
72
88
|
SEND_VIDEO: 'send-video',
|
|
73
89
|
START_BROADCAST_CALL: 'start-broadcast-call',
|
|
74
90
|
START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
|
|
91
|
+
START_FRAME_RECORD_CALL: 'start-frame-record-call',
|
|
75
92
|
START_RECORD_CALL: 'start-record-call',
|
|
76
93
|
START_TRANSCRIPTION_CALL: 'start-transcription-call',
|
|
77
94
|
STOP_BROADCAST_CALL: 'stop-broadcast-call',
|
|
78
95
|
STOP_CLOSED_CAPTIONS_CALL: 'stop-closed-captions-call',
|
|
96
|
+
STOP_FRAME_RECORD_CALL: 'stop-frame-record-call',
|
|
79
97
|
STOP_RECORD_CALL: 'stop-record-call',
|
|
80
98
|
STOP_TRANSCRIPTION_CALL: 'stop-transcription-call',
|
|
81
99
|
UPDATE_CALL: 'update-call',
|
|
@@ -7413,7 +7431,7 @@ const aggregate = (stats) => {
|
|
|
7413
7431
|
return report;
|
|
7414
7432
|
};
|
|
7415
7433
|
|
|
7416
|
-
const version = "1.16.
|
|
7434
|
+
const version = "1.16.3";
|
|
7417
7435
|
const [major, minor, patch] = version.split('.');
|
|
7418
7436
|
let sdkInfo = {
|
|
7419
7437
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -11540,6 +11558,19 @@ class Call {
|
|
|
11540
11558
|
this.stopRTMPBroadcast = async (name) => {
|
|
11541
11559
|
return this.streamClient.post(`${this.streamClientBasePath}/rtmp_broadcasts/${name}/stop`);
|
|
11542
11560
|
};
|
|
11561
|
+
/**
|
|
11562
|
+
* Starts frame by frame recording.
|
|
11563
|
+
* Sends call.frame_recording_started events
|
|
11564
|
+
*/
|
|
11565
|
+
this.startFrameRecording = async (data) => {
|
|
11566
|
+
return this.streamClient.post(`${this.streamClientBasePath}/start_frame_recording`, data);
|
|
11567
|
+
};
|
|
11568
|
+
/**
|
|
11569
|
+
* Stops frame recording.
|
|
11570
|
+
*/
|
|
11571
|
+
this.stopFrameRecording = async () => {
|
|
11572
|
+
return this.streamClient.post(`${this.streamClientBasePath}/stop_frame_recording`);
|
|
11573
|
+
};
|
|
11543
11574
|
/**
|
|
11544
11575
|
* Updates the call settings or custom data.
|
|
11545
11576
|
*
|
|
@@ -11697,25 +11728,13 @@ class Call {
|
|
|
11697
11728
|
* @param rating Rating between 1 and 5 denoting the experience of the user in the call
|
|
11698
11729
|
* @param reason The reason/description for the rating
|
|
11699
11730
|
* @param custom Custom data
|
|
11700
|
-
* @returns
|
|
11701
11731
|
*/
|
|
11702
11732
|
this.submitFeedback = async (rating, { reason, custom, } = {}) => {
|
|
11703
|
-
if (rating < 1 || rating > 5) {
|
|
11704
|
-
throw new Error('Rating must be between 1 and 5');
|
|
11705
|
-
}
|
|
11706
|
-
const callSessionId = this.state.session?.id;
|
|
11707
|
-
if (!callSessionId) {
|
|
11708
|
-
throw new Error('Feedback can be submitted only in the context of a call session');
|
|
11709
|
-
}
|
|
11710
11733
|
const { sdkName, sdkVersion, ...platform } = getSdkSignature(getClientDetails());
|
|
11711
|
-
|
|
11712
|
-
// until we relax the backend validation, we'll send N/A
|
|
11713
|
-
const userSessionId = this.sfuClient?.sessionId ?? 'N/A';
|
|
11714
|
-
const endpoint = `${this.streamClientBasePath}/feedback/${callSessionId}`;
|
|
11715
|
-
return this.streamClient.post(endpoint, {
|
|
11734
|
+
return this.streamClient.post(`${this.streamClientBasePath}/feedback`, {
|
|
11716
11735
|
rating,
|
|
11717
11736
|
reason,
|
|
11718
|
-
user_session_id:
|
|
11737
|
+
user_session_id: this.sfuClient?.sessionId,
|
|
11719
11738
|
sdk: sdkName,
|
|
11720
11739
|
sdk_version: sdkVersion,
|
|
11721
11740
|
custom: {
|
|
@@ -13020,7 +13039,7 @@ class StreamClient {
|
|
|
13020
13039
|
return await this.wsConnection.connect(this.defaultWSTimeout);
|
|
13021
13040
|
};
|
|
13022
13041
|
this.getUserAgent = () => {
|
|
13023
|
-
const version = "1.16.
|
|
13042
|
+
const version = "1.16.3";
|
|
13024
13043
|
return (this.userAgent ||
|
|
13025
13044
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
13026
13045
|
};
|
|
@@ -13529,5 +13548,5 @@ class StreamVideoClient {
|
|
|
13529
13548
|
}
|
|
13530
13549
|
StreamVideoClient._instanceMap = new Map();
|
|
13531
13550
|
|
|
13532
|
-
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 };
|
|
13551
|
+
export { AudioSettingsRequestDefaultDeviceEnum, AudioSettingsResponseDefaultDeviceEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CameraManager, CameraManagerState, CreateDeviceRequestPushProviderEnum, DebounceType, DynascaleManager, ErrorFromResponse, FrameRecordingSettingsRequestModeEnum, FrameRecordingSettingsResponseModeEnum, 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 };
|
|
13533
13552
|
//# sourceMappingURL=index.browser.es.js.map
|