@stream-io/video-client 1.0.6 → 1.0.8

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.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import 'webrtc-adapter';
2
2
  export * from './src/gen/coordinator';
3
+ export * from './src/gen/shims';
3
4
  export * from './src/coordinator/connection/types';
4
5
  export * as SfuEvents from './src/gen/video/sfu/event/events';
5
6
  export * as SfuModels from './src/gen/video/sfu/models/models';
package/dist/index.es.js CHANGED
@@ -14,17 +14,49 @@ import { fromByteArray } from 'base64-js';
14
14
  /**
15
15
  * @export
16
16
  */
17
- const AudioSettingsDefaultDeviceEnum = {
17
+ const AudioSettingsRequestDefaultDeviceEnum = {
18
18
  SPEAKER: 'speaker',
19
19
  EARPIECE: 'earpiece',
20
20
  };
21
21
  /**
22
22
  * @export
23
23
  */
24
- const AudioSettingsRequestDefaultDeviceEnum = {
24
+ const AudioSettingsResponseDefaultDeviceEnum = {
25
25
  SPEAKER: 'speaker',
26
26
  EARPIECE: 'earpiece',
27
27
  };
28
+ /**
29
+ * @export
30
+ */
31
+ const BlockListOptionsBehaviorEnum = {
32
+ FLAG: 'flag',
33
+ BLOCK: 'block',
34
+ SHADOW_BLOCK: 'shadow_block',
35
+ };
36
+ /**
37
+ * @export
38
+ */
39
+ const ChannelConfigWithInfoAutomodEnum = {
40
+ DISABLED: 'disabled',
41
+ SIMPLE: 'simple',
42
+ AI: 'AI',
43
+ };
44
+ /**
45
+ * @export
46
+ */
47
+ const ChannelConfigWithInfoAutomodBehaviorEnum = {
48
+ FLAG: 'flag',
49
+ BLOCK: 'block',
50
+ SHADOW_BLOCK: 'shadow_block',
51
+ };
52
+ /**
53
+ * @export
54
+ */
55
+ const ChannelConfigWithInfoBlocklistBehaviorEnum = {
56
+ FLAG: 'flag',
57
+ BLOCK: 'block',
58
+ SHADOW_BLOCK: 'shadow_block',
59
+ };
28
60
  /**
29
61
  * @export
30
62
  */
@@ -42,14 +74,6 @@ const NoiseCancellationSettingsModeEnum = {
42
74
  DISABLED: 'disabled',
43
75
  AUTO_ON: 'auto-on',
44
76
  };
45
- /**
46
- * @export
47
- */
48
- const NoiseCancellationSettingsRequestModeEnum = {
49
- AVAILABLE: 'available',
50
- DISABLED: 'disabled',
51
- AUTO_ON: 'auto-on',
52
- };
53
77
  /**
54
78
  * All possibility of string to use
55
79
  * @export
@@ -102,7 +126,7 @@ const RecordSettingsRequestQualityEnum = {
102
126
  /**
103
127
  * @export
104
128
  */
105
- const TranscriptionSettingsModeEnum = {
129
+ const TranscriptionSettingsRequestModeEnum = {
106
130
  AVAILABLE: 'available',
107
131
  DISABLED: 'disabled',
108
132
  AUTO_ON: 'auto-on',
@@ -110,7 +134,7 @@ const TranscriptionSettingsModeEnum = {
110
134
  /**
111
135
  * @export
112
136
  */
113
- const TranscriptionSettingsRequestModeEnum = {
137
+ const TranscriptionSettingsResponseModeEnum = {
114
138
  AVAILABLE: 'available',
115
139
  DISABLED: 'disabled',
116
140
  AUTO_ON: 'auto-on',
@@ -118,7 +142,7 @@ const TranscriptionSettingsRequestModeEnum = {
118
142
  /**
119
143
  * @export
120
144
  */
121
- const VideoSettingsCameraFacingEnum = {
145
+ const VideoSettingsRequestCameraFacingEnum = {
122
146
  FRONT: 'front',
123
147
  BACK: 'back',
124
148
  EXTERNAL: 'external',
@@ -126,7 +150,7 @@ const VideoSettingsCameraFacingEnum = {
126
150
  /**
127
151
  * @export
128
152
  */
129
- const VideoSettingsRequestCameraFacingEnum = {
153
+ const VideoSettingsResponseCameraFacingEnum = {
130
154
  FRONT: 'front',
131
155
  BACK: 'back',
132
156
  EXTERNAL: 'external',
@@ -7580,6 +7604,14 @@ class CallState {
7580
7604
  'connection.error': undefined,
7581
7605
  'connection.ok': undefined,
7582
7606
  'health.check': undefined,
7607
+ 'user.banned': undefined,
7608
+ 'user.deactivated': undefined,
7609
+ 'user.deleted': undefined,
7610
+ 'user.muted': undefined,
7611
+ 'user.presence.changed': undefined,
7612
+ 'user.reactivated': undefined,
7613
+ 'user.unbanned': undefined,
7614
+ 'user.updated': undefined,
7583
7615
  custom: undefined,
7584
7616
  // events that update call state:
7585
7617
  'call.accepted': (e) => this.updateFromCallResponse(e.call),
@@ -8205,7 +8237,8 @@ class Publisher {
8205
8237
  };
8206
8238
  if (!transceiver) {
8207
8239
  const { settings } = this.state;
8208
- const targetResolution = settings?.video.target_resolution;
8240
+ const targetResolution = settings?.video
8241
+ .target_resolution;
8209
8242
  const screenShareBitrate = settings?.screensharing.target_resolution?.bitrate;
8210
8243
  const videoEncodings = trackType === TrackType.VIDEO
8211
8244
  ? findOptimalVideoLayers(track, targetResolution)
@@ -8567,7 +8600,8 @@ class Publisher {
8567
8600
  this.getCurrentTrackInfos = (sdp) => {
8568
8601
  sdp = sdp || this.pc.localDescription?.sdp;
8569
8602
  const { settings } = this.state;
8570
- const targetResolution = settings?.video.target_resolution;
8603
+ const targetResolution = settings?.video
8604
+ .target_resolution;
8571
8605
  return this.pc
8572
8606
  .getTransceivers()
8573
8607
  .filter((t) => t.direction === 'sendonly' && t.sender.track)
@@ -12280,7 +12314,9 @@ class Call {
12280
12314
  if (this.ringing) {
12281
12315
  // I'm the one who started the call, so I should cancel it.
12282
12316
  const hasOtherParticipants = this.state.remoteParticipants.length > 0;
12283
- if (this.isCreatedByMe && !hasOtherParticipants) {
12317
+ if (this.isCreatedByMe &&
12318
+ !hasOtherParticipants &&
12319
+ callingState === CallingState.RINGING) {
12284
12320
  // Signals other users that I have cancelled my call to them
12285
12321
  // before they accepted it.
12286
12322
  await this.reject();
@@ -15228,7 +15264,7 @@ class StreamClient {
15228
15264
  });
15229
15265
  };
15230
15266
  this.getUserAgent = () => {
15231
- const version = "1.0.6" ;
15267
+ const version = "1.0.8" ;
15232
15268
  return (this.userAgent ||
15233
15269
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
15234
15270
  };
@@ -15704,5 +15740,5 @@ class StreamVideoClient {
15704
15740
  }
15705
15741
  }
15706
15742
 
15707
- export { AudioSettingsDefaultDeviceEnum, AudioSettingsRequestDefaultDeviceEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CameraManager, CameraManagerState, CreateDeviceRequestPushProviderEnum, DebounceType, DynascaleManager, ErrorFromResponse, InputMediaDeviceManager, InputMediaDeviceManagerState, MicrophoneManager, MicrophoneManagerState, NoiseCancellationSettingsModeEnum, NoiseCancellationSettingsRequestModeEnum, OwnCapability, RecordSettingsRequestModeEnum, RecordSettingsRequestQualityEnum, rxUtils as RxUtils, ScreenShareManager, ScreenShareState, events as SfuEvents, models as SfuModels, SpeakerManager, SpeakerState, StreamSfuClient, StreamVideoClient, StreamVideoReadOnlyStateStore, StreamVideoWriteableStateStore, TranscriptionSettingsModeEnum, TranscriptionSettingsRequestModeEnum, VideoSettingsCameraFacingEnum, VideoSettingsRequestCameraFacingEnum, ViewportTracker, VisibilityState, checkIfAudioOutputChangeSupported, combineComparators, conditional, createSoundDetector, defaultSortPreset, descending, deviceIds$, disposeOfMediaStream, dominantSpeaker, getAudioDevices, getAudioOutputDevices, getAudioStream, getClientDetails, getDeviceInfo, getLogger, getOSInfo, getScreenShareStream, getSdkInfo, getVideoDevices, getVideoStream, getWebRTCInfo, hasAudio, hasScreenShare, hasScreenShareAudio, hasVideo, isPinned, livestreamOrAudioRoomSortPreset, logLevels, logToConsole, name, noopComparator, paginatedLayoutSortPreset, pinned, publishingAudio, publishingVideo, reactionType, role, screenSharing, setDeviceInfo, setLogLevel, setLogger, setOSInfo, setSdkInfo, setWebRTCInfo, speakerLayoutSortPreset, speaking };
15743
+ export { AudioSettingsRequestDefaultDeviceEnum, AudioSettingsResponseDefaultDeviceEnum, BlockListOptionsBehaviorEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CameraManager, CameraManagerState, ChannelConfigWithInfoAutomodBehaviorEnum, ChannelConfigWithInfoAutomodEnum, ChannelConfigWithInfoBlocklistBehaviorEnum, 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, TranscriptionSettingsRequestModeEnum, TranscriptionSettingsResponseModeEnum, VideoSettingsRequestCameraFacingEnum, VideoSettingsResponseCameraFacingEnum, ViewportTracker, VisibilityState, checkIfAudioOutputChangeSupported, combineComparators, conditional, createSoundDetector, defaultSortPreset, descending, deviceIds$, disposeOfMediaStream, dominantSpeaker, getAudioDevices, getAudioOutputDevices, getAudioStream, getClientDetails, getDeviceInfo, getLogger, getOSInfo, getScreenShareStream, getSdkInfo, getVideoDevices, getVideoStream, getWebRTCInfo, hasAudio, hasScreenShare, hasScreenShareAudio, hasVideo, isPinned, livestreamOrAudioRoomSortPreset, logLevels, logToConsole, name, noopComparator, paginatedLayoutSortPreset, pinned, publishingAudio, publishingVideo, reactionType, role, screenSharing, setDeviceInfo, setLogLevel, setLogger, setOSInfo, setSdkInfo, setWebRTCInfo, speakerLayoutSortPreset, speaking };
15708
15744
  //# sourceMappingURL=index.es.js.map