@stream-io/video-client 1.0.6 → 1.0.7
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 +52 -18
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +58 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +52 -18
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +3 -3
- package/dist/src/gen/coordinator/index.d.ts +3204 -1800
- package/dist/src/gen/shims.d.ts +3 -0
- package/dist/src/rtc/videoLayers.d.ts +3 -3
- package/index.ts +1 -0
- package/package.json +1 -1
- package/src/Call.ts +14 -14
- package/src/coordinator/connection/connection.ts +2 -5
- package/src/gen/coordinator/index.ts +3199 -1808
- package/src/gen/shims.ts +4 -0
- package/src/rtc/Publisher.ts +5 -2
- package/src/rtc/videoLayers.ts +4 -4
- package/src/store/CallState.ts +8 -0
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.0.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.0.6...@stream-io/video-client-1.0.7) (2024-05-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* align with the latest openapi ([#1343](https://github.com/GetStream/stream-video-js/issues/1343)) ([2cb71cc](https://github.com/GetStream/stream-video-js/commit/2cb71cc599f46e248a4af9b4ea79f5938d7c508c))
|
|
11
|
+
|
|
5
12
|
### [1.0.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.0.5...@stream-io/video-client-1.0.6) (2024-05-16)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -13,17 +13,49 @@ import { fromByteArray } from 'base64-js';
|
|
|
13
13
|
/**
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
|
-
const
|
|
16
|
+
const AudioSettingsRequestDefaultDeviceEnum = {
|
|
17
17
|
SPEAKER: 'speaker',
|
|
18
18
|
EARPIECE: 'earpiece',
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* @export
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const AudioSettingsResponseDefaultDeviceEnum = {
|
|
24
24
|
SPEAKER: 'speaker',
|
|
25
25
|
EARPIECE: 'earpiece',
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const BlockListOptionsBehaviorEnum = {
|
|
31
|
+
FLAG: 'flag',
|
|
32
|
+
BLOCK: 'block',
|
|
33
|
+
SHADOW_BLOCK: 'shadow_block',
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
const ChannelConfigWithInfoAutomodEnum = {
|
|
39
|
+
DISABLED: 'disabled',
|
|
40
|
+
SIMPLE: 'simple',
|
|
41
|
+
AI: 'AI',
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
const ChannelConfigWithInfoAutomodBehaviorEnum = {
|
|
47
|
+
FLAG: 'flag',
|
|
48
|
+
BLOCK: 'block',
|
|
49
|
+
SHADOW_BLOCK: 'shadow_block',
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
const ChannelConfigWithInfoBlocklistBehaviorEnum = {
|
|
55
|
+
FLAG: 'flag',
|
|
56
|
+
BLOCK: 'block',
|
|
57
|
+
SHADOW_BLOCK: 'shadow_block',
|
|
58
|
+
};
|
|
27
59
|
/**
|
|
28
60
|
* @export
|
|
29
61
|
*/
|
|
@@ -41,14 +73,6 @@ const NoiseCancellationSettingsModeEnum = {
|
|
|
41
73
|
DISABLED: 'disabled',
|
|
42
74
|
AUTO_ON: 'auto-on',
|
|
43
75
|
};
|
|
44
|
-
/**
|
|
45
|
-
* @export
|
|
46
|
-
*/
|
|
47
|
-
const NoiseCancellationSettingsRequestModeEnum = {
|
|
48
|
-
AVAILABLE: 'available',
|
|
49
|
-
DISABLED: 'disabled',
|
|
50
|
-
AUTO_ON: 'auto-on',
|
|
51
|
-
};
|
|
52
76
|
/**
|
|
53
77
|
* All possibility of string to use
|
|
54
78
|
* @export
|
|
@@ -101,7 +125,7 @@ const RecordSettingsRequestQualityEnum = {
|
|
|
101
125
|
/**
|
|
102
126
|
* @export
|
|
103
127
|
*/
|
|
104
|
-
const
|
|
128
|
+
const TranscriptionSettingsRequestModeEnum = {
|
|
105
129
|
AVAILABLE: 'available',
|
|
106
130
|
DISABLED: 'disabled',
|
|
107
131
|
AUTO_ON: 'auto-on',
|
|
@@ -109,7 +133,7 @@ const TranscriptionSettingsModeEnum = {
|
|
|
109
133
|
/**
|
|
110
134
|
* @export
|
|
111
135
|
*/
|
|
112
|
-
const
|
|
136
|
+
const TranscriptionSettingsResponseModeEnum = {
|
|
113
137
|
AVAILABLE: 'available',
|
|
114
138
|
DISABLED: 'disabled',
|
|
115
139
|
AUTO_ON: 'auto-on',
|
|
@@ -117,7 +141,7 @@ const TranscriptionSettingsRequestModeEnum = {
|
|
|
117
141
|
/**
|
|
118
142
|
* @export
|
|
119
143
|
*/
|
|
120
|
-
const
|
|
144
|
+
const VideoSettingsRequestCameraFacingEnum = {
|
|
121
145
|
FRONT: 'front',
|
|
122
146
|
BACK: 'back',
|
|
123
147
|
EXTERNAL: 'external',
|
|
@@ -125,7 +149,7 @@ const VideoSettingsCameraFacingEnum = {
|
|
|
125
149
|
/**
|
|
126
150
|
* @export
|
|
127
151
|
*/
|
|
128
|
-
const
|
|
152
|
+
const VideoSettingsResponseCameraFacingEnum = {
|
|
129
153
|
FRONT: 'front',
|
|
130
154
|
BACK: 'back',
|
|
131
155
|
EXTERNAL: 'external',
|
|
@@ -7579,6 +7603,14 @@ class CallState {
|
|
|
7579
7603
|
'connection.error': undefined,
|
|
7580
7604
|
'connection.ok': undefined,
|
|
7581
7605
|
'health.check': undefined,
|
|
7606
|
+
'user.banned': undefined,
|
|
7607
|
+
'user.deactivated': undefined,
|
|
7608
|
+
'user.deleted': undefined,
|
|
7609
|
+
'user.muted': undefined,
|
|
7610
|
+
'user.presence.changed': undefined,
|
|
7611
|
+
'user.reactivated': undefined,
|
|
7612
|
+
'user.unbanned': undefined,
|
|
7613
|
+
'user.updated': undefined,
|
|
7582
7614
|
custom: undefined,
|
|
7583
7615
|
// events that update call state:
|
|
7584
7616
|
'call.accepted': (e) => this.updateFromCallResponse(e.call),
|
|
@@ -8204,7 +8236,8 @@ class Publisher {
|
|
|
8204
8236
|
};
|
|
8205
8237
|
if (!transceiver) {
|
|
8206
8238
|
const { settings } = this.state;
|
|
8207
|
-
const targetResolution = settings?.video
|
|
8239
|
+
const targetResolution = settings?.video
|
|
8240
|
+
.target_resolution;
|
|
8208
8241
|
const screenShareBitrate = settings?.screensharing.target_resolution?.bitrate;
|
|
8209
8242
|
const videoEncodings = trackType === TrackType.VIDEO
|
|
8210
8243
|
? findOptimalVideoLayers(track, targetResolution)
|
|
@@ -8566,7 +8599,8 @@ class Publisher {
|
|
|
8566
8599
|
this.getCurrentTrackInfos = (sdp) => {
|
|
8567
8600
|
sdp = sdp || this.pc.localDescription?.sdp;
|
|
8568
8601
|
const { settings } = this.state;
|
|
8569
|
-
const targetResolution = settings?.video
|
|
8602
|
+
const targetResolution = settings?.video
|
|
8603
|
+
.target_resolution;
|
|
8570
8604
|
return this.pc
|
|
8571
8605
|
.getTransceivers()
|
|
8572
8606
|
.filter((t) => t.direction === 'sendonly' && t.sender.track)
|
|
@@ -15229,7 +15263,7 @@ class StreamClient {
|
|
|
15229
15263
|
});
|
|
15230
15264
|
};
|
|
15231
15265
|
this.getUserAgent = () => {
|
|
15232
|
-
const version = "1.0.
|
|
15266
|
+
const version = "1.0.7" ;
|
|
15233
15267
|
return (this.userAgent ||
|
|
15234
15268
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
15235
15269
|
};
|
|
@@ -15705,5 +15739,5 @@ class StreamVideoClient {
|
|
|
15705
15739
|
}
|
|
15706
15740
|
}
|
|
15707
15741
|
|
|
15708
|
-
export {
|
|
15742
|
+
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 };
|
|
15709
15743
|
//# sourceMappingURL=index.browser.es.js.map
|