@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/dist/index.es.js CHANGED
@@ -32,6 +32,22 @@ const CreateDeviceRequestPushProviderEnum = {
32
32
  HUAWEI: 'huawei',
33
33
  XIAOMI: 'xiaomi',
34
34
  };
35
+ /**
36
+ * @export
37
+ */
38
+ const FrameRecordingSettingsRequestModeEnum = {
39
+ AVAILABLE: 'available',
40
+ DISABLED: 'disabled',
41
+ AUTO_ON: 'auto-on',
42
+ };
43
+ /**
44
+ * @export
45
+ */
46
+ const FrameRecordingSettingsResponseModeEnum = {
47
+ AVAILABLE: 'available',
48
+ DISABLED: 'disabled',
49
+ AUTO_ON: 'auto-on',
50
+ };
35
51
  /**
36
52
  * @export
37
53
  */
@@ -73,10 +89,12 @@ const OwnCapability = {
73
89
  SEND_VIDEO: 'send-video',
74
90
  START_BROADCAST_CALL: 'start-broadcast-call',
75
91
  START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
92
+ START_FRAME_RECORD_CALL: 'start-frame-record-call',
76
93
  START_RECORD_CALL: 'start-record-call',
77
94
  START_TRANSCRIPTION_CALL: 'start-transcription-call',
78
95
  STOP_BROADCAST_CALL: 'stop-broadcast-call',
79
96
  STOP_CLOSED_CAPTIONS_CALL: 'stop-closed-captions-call',
97
+ STOP_FRAME_RECORD_CALL: 'stop-frame-record-call',
80
98
  STOP_RECORD_CALL: 'stop-record-call',
81
99
  STOP_TRANSCRIPTION_CALL: 'stop-transcription-call',
82
100
  UPDATE_CALL: 'update-call',
@@ -7414,7 +7432,7 @@ const aggregate = (stats) => {
7414
7432
  return report;
7415
7433
  };
7416
7434
 
7417
- const version = "1.16.2";
7435
+ const version = "1.16.3";
7418
7436
  const [major, minor, patch] = version.split('.');
7419
7437
  let sdkInfo = {
7420
7438
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -11541,6 +11559,19 @@ class Call {
11541
11559
  this.stopRTMPBroadcast = async (name) => {
11542
11560
  return this.streamClient.post(`${this.streamClientBasePath}/rtmp_broadcasts/${name}/stop`);
11543
11561
  };
11562
+ /**
11563
+ * Starts frame by frame recording.
11564
+ * Sends call.frame_recording_started events
11565
+ */
11566
+ this.startFrameRecording = async (data) => {
11567
+ return this.streamClient.post(`${this.streamClientBasePath}/start_frame_recording`, data);
11568
+ };
11569
+ /**
11570
+ * Stops frame recording.
11571
+ */
11572
+ this.stopFrameRecording = async () => {
11573
+ return this.streamClient.post(`${this.streamClientBasePath}/stop_frame_recording`);
11574
+ };
11544
11575
  /**
11545
11576
  * Updates the call settings or custom data.
11546
11577
  *
@@ -11698,25 +11729,13 @@ class Call {
11698
11729
  * @param rating Rating between 1 and 5 denoting the experience of the user in the call
11699
11730
  * @param reason The reason/description for the rating
11700
11731
  * @param custom Custom data
11701
- * @returns
11702
11732
  */
11703
11733
  this.submitFeedback = async (rating, { reason, custom, } = {}) => {
11704
- if (rating < 1 || rating > 5) {
11705
- throw new Error('Rating must be between 1 and 5');
11706
- }
11707
- const callSessionId = this.state.session?.id;
11708
- if (!callSessionId) {
11709
- throw new Error('Feedback can be submitted only in the context of a call session');
11710
- }
11711
11734
  const { sdkName, sdkVersion, ...platform } = getSdkSignature(getClientDetails());
11712
- // user sessionId is not available once the call has been left
11713
- // until we relax the backend validation, we'll send N/A
11714
- const userSessionId = this.sfuClient?.sessionId ?? 'N/A';
11715
- const endpoint = `${this.streamClientBasePath}/feedback/${callSessionId}`;
11716
- return this.streamClient.post(endpoint, {
11735
+ return this.streamClient.post(`${this.streamClientBasePath}/feedback`, {
11717
11736
  rating,
11718
11737
  reason,
11719
- user_session_id: userSessionId,
11738
+ user_session_id: this.sfuClient?.sessionId,
11720
11739
  sdk: sdkName,
11721
11740
  sdk_version: sdkVersion,
11722
11741
  custom: {
@@ -13019,7 +13038,7 @@ class StreamClient {
13019
13038
  return await this.wsConnection.connect(this.defaultWSTimeout);
13020
13039
  };
13021
13040
  this.getUserAgent = () => {
13022
- const version = "1.16.2";
13041
+ const version = "1.16.3";
13023
13042
  return (this.userAgent ||
13024
13043
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
13025
13044
  };
@@ -13528,5 +13547,5 @@ class StreamVideoClient {
13528
13547
  }
13529
13548
  StreamVideoClient._instanceMap = new Map();
13530
13549
 
13531
- 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 };
13550
+ 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 };
13532
13551
  //# sourceMappingURL=index.es.js.map