@stream-io/video-client 0.0.23 → 0.0.25
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 +14 -0
- package/dist/index.browser.es.js +20 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +23 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +20 -3
- package/dist/index.es.js.map +1 -1
- package/dist/src/client-details.d.ts +7 -0
- package/dist/src/gen/coordinator/index.d.ts +33 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/Call.ts +4 -2
- package/src/client-details.ts +29 -0
- package/src/events/callEventHandlers.ts +1 -0
- package/src/gen/coordinator/index.ts +32 -0
- package/dist/src/sdk-info.d.ts +0 -3
- package/src/sdk-info.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.25](https://github.com/GetStream/stream-video-js/compare/client0.0.24...client0.0.25) (2023-06-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **react-native:** send device and os info from the SDK ([#690](https://github.com/GetStream/stream-video-js/issues/690)) ([deb1a28](https://github.com/GetStream/stream-video-js/commit/deb1a28a4a029d988d11970608f00da8b327a02d))
|
|
11
|
+
|
|
12
|
+
### [0.0.24](https://github.com/GetStream/stream-video-js/compare/client0.0.23...client0.0.24) (2023-06-23)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Add `CallUserMuted` event ([#699](https://github.com/GetStream/stream-video-js/issues/699)) ([41a09e2](https://github.com/GetStream/stream-video-js/commit/41a09e257a9a8cd9b1b45551f35cebb3cd7a048b))
|
|
18
|
+
|
|
5
19
|
### [0.0.23](https://github.com/GetStream/stream-video-js/compare/client0.0.22...client0.0.23) (2023-06-22)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -7765,6 +7765,7 @@ const registerEventHandlers = (call, state, dispatcher) => {
|
|
|
7765
7765
|
'call.session_participant_left': watchCallSessionParticipantLeft(state),
|
|
7766
7766
|
'call.unblocked_user': watchUnblockedUser(state),
|
|
7767
7767
|
'call.updated': watchCallUpdated(state),
|
|
7768
|
+
'call.user_muted': () => console.log('call.user_muted received'),
|
|
7768
7769
|
};
|
|
7769
7770
|
const eventHandlers = [
|
|
7770
7771
|
watchChangePublishQuality(dispatcher, call),
|
|
@@ -8351,12 +8352,26 @@ const CallTypes = new CallTypesRegistry([
|
|
|
8351
8352
|
]);
|
|
8352
8353
|
|
|
8353
8354
|
let sdkInfo;
|
|
8355
|
+
let osInfo;
|
|
8356
|
+
let deviceInfo;
|
|
8354
8357
|
const setSdkInfo = (info) => {
|
|
8355
8358
|
sdkInfo = info;
|
|
8356
8359
|
};
|
|
8357
8360
|
const getSdkInfo = () => {
|
|
8358
8361
|
return sdkInfo;
|
|
8359
8362
|
};
|
|
8363
|
+
const setOSInfo = (info) => {
|
|
8364
|
+
osInfo = info;
|
|
8365
|
+
};
|
|
8366
|
+
const getOSInfo = () => {
|
|
8367
|
+
return osInfo;
|
|
8368
|
+
};
|
|
8369
|
+
const setDeviceInfo = (info) => {
|
|
8370
|
+
deviceInfo = info;
|
|
8371
|
+
};
|
|
8372
|
+
const getDeviceInfo = () => {
|
|
8373
|
+
return deviceInfo;
|
|
8374
|
+
};
|
|
8360
8375
|
|
|
8361
8376
|
/**
|
|
8362
8377
|
* An object representation of a `Call`.
|
|
@@ -8699,7 +8714,9 @@ class Call {
|
|
|
8699
8714
|
try {
|
|
8700
8715
|
const clientDetails = {};
|
|
8701
8716
|
if (isReactNative()) {
|
|
8702
|
-
//
|
|
8717
|
+
// Since RN doesn't support web, sharing browser info is not required
|
|
8718
|
+
clientDetails.os = getOSInfo();
|
|
8719
|
+
clientDetails.device = getDeviceInfo();
|
|
8703
8720
|
}
|
|
8704
8721
|
else {
|
|
8705
8722
|
const details = new UAParser(navigator.userAgent).getResult();
|
|
@@ -11081,7 +11098,7 @@ class StreamClient {
|
|
|
11081
11098
|
}
|
|
11082
11099
|
getUserAgent() {
|
|
11083
11100
|
return (this.userAgent ||
|
|
11084
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11101
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.24"}`);
|
|
11085
11102
|
}
|
|
11086
11103
|
setUserAgent(userAgent) {
|
|
11087
11104
|
this.userAgent = userAgent;
|
|
@@ -11815,5 +11832,5 @@ var browsers = /*#__PURE__*/Object.freeze({
|
|
|
11815
11832
|
isSafari: isSafari
|
|
11816
11833
|
});
|
|
11817
11834
|
|
|
11818
|
-
export { APIErrorCodeEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CreateDeviceRequestPushProviderEnum, DebounceType, ErrorFromResponse, OwnCapability, RecordSettingsModeEnum, RecordSettingsQualityEnum, RecordSettingsRequestModeEnum, RecordSettingsRequestQualityEnum, rxUtils as RxUtils, events as SfuEvents, models as SfuModels, StreamSfuClient, StreamVideoClient, StreamVideoReadOnlyStateStore, StreamVideoWriteableStateStore, TranscriptionSettingsModeEnum, TranscriptionSettingsRequestModeEnum, VideoSettingsCameraFacingEnum, VideoSettingsRequestCameraFacingEnum, ViewportTracker, VisibilityState, checkIfAudioOutputChangeSupported, combineComparators, conditional, createSoundDetector, defaultSortPreset, descending, disposeOfMediaStream, dominantSpeaker, getAudioDevices, getAudioOutputDevices, getAudioStream, getLogger, getScreenShareStream, getSdkInfo, getVideoDevices, getVideoStream, isStreamVideoLocalParticipant, livestreamOrAudioRoomSortPreset, logToConsole, name, noopComparator, pinned, publishingAudio, publishingVideo, reactionType, role, screenSharing, setLogger, setSdkInfo, speakerLayoutSortPreset, speaking, watchForAddedDefaultAudioDevice, watchForAddedDefaultAudioOutputDevice, watchForAddedDefaultVideoDevice, watchForDisconnectedAudioDevice, watchForDisconnectedAudioOutputDevice, watchForDisconnectedVideoDevice };
|
|
11835
|
+
export { APIErrorCodeEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CreateDeviceRequestPushProviderEnum, DebounceType, ErrorFromResponse, OwnCapability, RecordSettingsModeEnum, RecordSettingsQualityEnum, RecordSettingsRequestModeEnum, RecordSettingsRequestQualityEnum, rxUtils as RxUtils, events as SfuEvents, models as SfuModels, StreamSfuClient, StreamVideoClient, StreamVideoReadOnlyStateStore, StreamVideoWriteableStateStore, TranscriptionSettingsModeEnum, TranscriptionSettingsRequestModeEnum, VideoSettingsCameraFacingEnum, VideoSettingsRequestCameraFacingEnum, ViewportTracker, VisibilityState, checkIfAudioOutputChangeSupported, combineComparators, conditional, createSoundDetector, defaultSortPreset, descending, disposeOfMediaStream, dominantSpeaker, getAudioDevices, getAudioOutputDevices, getAudioStream, getDeviceInfo, getLogger, getOSInfo, getScreenShareStream, getSdkInfo, getVideoDevices, getVideoStream, isStreamVideoLocalParticipant, livestreamOrAudioRoomSortPreset, logToConsole, name, noopComparator, pinned, publishingAudio, publishingVideo, reactionType, role, screenSharing, setDeviceInfo, setLogger, setOSInfo, setSdkInfo, speakerLayoutSortPreset, speaking, watchForAddedDefaultAudioDevice, watchForAddedDefaultAudioOutputDevice, watchForAddedDefaultVideoDevice, watchForDisconnectedAudioDevice, watchForDisconnectedAudioOutputDevice, watchForDisconnectedVideoDevice };
|
|
11819
11836
|
//# sourceMappingURL=index.browser.es.js.map
|