@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/dist/index.cjs.js
CHANGED
|
@@ -33,6 +33,22 @@ const CreateDeviceRequestPushProviderEnum = {
|
|
|
33
33
|
HUAWEI: 'huawei',
|
|
34
34
|
XIAOMI: 'xiaomi',
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
const FrameRecordingSettingsRequestModeEnum = {
|
|
40
|
+
AVAILABLE: 'available',
|
|
41
|
+
DISABLED: 'disabled',
|
|
42
|
+
AUTO_ON: 'auto-on',
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
const FrameRecordingSettingsResponseModeEnum = {
|
|
48
|
+
AVAILABLE: 'available',
|
|
49
|
+
DISABLED: 'disabled',
|
|
50
|
+
AUTO_ON: 'auto-on',
|
|
51
|
+
};
|
|
36
52
|
/**
|
|
37
53
|
* @export
|
|
38
54
|
*/
|
|
@@ -74,10 +90,12 @@ const OwnCapability = {
|
|
|
74
90
|
SEND_VIDEO: 'send-video',
|
|
75
91
|
START_BROADCAST_CALL: 'start-broadcast-call',
|
|
76
92
|
START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
|
|
93
|
+
START_FRAME_RECORD_CALL: 'start-frame-record-call',
|
|
77
94
|
START_RECORD_CALL: 'start-record-call',
|
|
78
95
|
START_TRANSCRIPTION_CALL: 'start-transcription-call',
|
|
79
96
|
STOP_BROADCAST_CALL: 'stop-broadcast-call',
|
|
80
97
|
STOP_CLOSED_CAPTIONS_CALL: 'stop-closed-captions-call',
|
|
98
|
+
STOP_FRAME_RECORD_CALL: 'stop-frame-record-call',
|
|
81
99
|
STOP_RECORD_CALL: 'stop-record-call',
|
|
82
100
|
STOP_TRANSCRIPTION_CALL: 'stop-transcription-call',
|
|
83
101
|
UPDATE_CALL: 'update-call',
|
|
@@ -7415,7 +7433,7 @@ const aggregate = (stats) => {
|
|
|
7415
7433
|
return report;
|
|
7416
7434
|
};
|
|
7417
7435
|
|
|
7418
|
-
const version = "1.16.
|
|
7436
|
+
const version = "1.16.3";
|
|
7419
7437
|
const [major, minor, patch] = version.split('.');
|
|
7420
7438
|
let sdkInfo = {
|
|
7421
7439
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -11542,6 +11560,19 @@ class Call {
|
|
|
11542
11560
|
this.stopRTMPBroadcast = async (name) => {
|
|
11543
11561
|
return this.streamClient.post(`${this.streamClientBasePath}/rtmp_broadcasts/${name}/stop`);
|
|
11544
11562
|
};
|
|
11563
|
+
/**
|
|
11564
|
+
* Starts frame by frame recording.
|
|
11565
|
+
* Sends call.frame_recording_started events
|
|
11566
|
+
*/
|
|
11567
|
+
this.startFrameRecording = async (data) => {
|
|
11568
|
+
return this.streamClient.post(`${this.streamClientBasePath}/start_frame_recording`, data);
|
|
11569
|
+
};
|
|
11570
|
+
/**
|
|
11571
|
+
* Stops frame recording.
|
|
11572
|
+
*/
|
|
11573
|
+
this.stopFrameRecording = async () => {
|
|
11574
|
+
return this.streamClient.post(`${this.streamClientBasePath}/stop_frame_recording`);
|
|
11575
|
+
};
|
|
11545
11576
|
/**
|
|
11546
11577
|
* Updates the call settings or custom data.
|
|
11547
11578
|
*
|
|
@@ -11699,25 +11730,13 @@ class Call {
|
|
|
11699
11730
|
* @param rating Rating between 1 and 5 denoting the experience of the user in the call
|
|
11700
11731
|
* @param reason The reason/description for the rating
|
|
11701
11732
|
* @param custom Custom data
|
|
11702
|
-
* @returns
|
|
11703
11733
|
*/
|
|
11704
11734
|
this.submitFeedback = async (rating, { reason, custom, } = {}) => {
|
|
11705
|
-
if (rating < 1 || rating > 5) {
|
|
11706
|
-
throw new Error('Rating must be between 1 and 5');
|
|
11707
|
-
}
|
|
11708
|
-
const callSessionId = this.state.session?.id;
|
|
11709
|
-
if (!callSessionId) {
|
|
11710
|
-
throw new Error('Feedback can be submitted only in the context of a call session');
|
|
11711
|
-
}
|
|
11712
11735
|
const { sdkName, sdkVersion, ...platform } = getSdkSignature(getClientDetails());
|
|
11713
|
-
|
|
11714
|
-
// until we relax the backend validation, we'll send N/A
|
|
11715
|
-
const userSessionId = this.sfuClient?.sessionId ?? 'N/A';
|
|
11716
|
-
const endpoint = `${this.streamClientBasePath}/feedback/${callSessionId}`;
|
|
11717
|
-
return this.streamClient.post(endpoint, {
|
|
11736
|
+
return this.streamClient.post(`${this.streamClientBasePath}/feedback`, {
|
|
11718
11737
|
rating,
|
|
11719
11738
|
reason,
|
|
11720
|
-
user_session_id:
|
|
11739
|
+
user_session_id: this.sfuClient?.sessionId,
|
|
11721
11740
|
sdk: sdkName,
|
|
11722
11741
|
sdk_version: sdkVersion,
|
|
11723
11742
|
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
|
};
|
|
@@ -13545,6 +13564,8 @@ exports.CameraManagerState = CameraManagerState;
|
|
|
13545
13564
|
exports.CreateDeviceRequestPushProviderEnum = CreateDeviceRequestPushProviderEnum;
|
|
13546
13565
|
exports.DynascaleManager = DynascaleManager;
|
|
13547
13566
|
exports.ErrorFromResponse = ErrorFromResponse;
|
|
13567
|
+
exports.FrameRecordingSettingsRequestModeEnum = FrameRecordingSettingsRequestModeEnum;
|
|
13568
|
+
exports.FrameRecordingSettingsResponseModeEnum = FrameRecordingSettingsResponseModeEnum;
|
|
13548
13569
|
exports.InputMediaDeviceManager = InputMediaDeviceManager;
|
|
13549
13570
|
exports.InputMediaDeviceManagerState = InputMediaDeviceManagerState;
|
|
13550
13571
|
exports.LayoutSettingsRequestNameEnum = LayoutSettingsRequestNameEnum;
|