@stream-io/video-client 0.0.24 → 0.0.26
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 +19 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +22 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +19 -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 +9 -3
- 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/gen/coordinator/index.ts +9 -3
- 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.26](https://github.com/GetStream/stream-video-js/compare/client0.0.25...client0.0.26) (2023-06-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Add user that mutes others in `CallUserMuted` event ([#704](https://github.com/GetStream/stream-video-js/issues/704)) ([f57fbbd](https://github.com/GetStream/stream-video-js/commit/f57fbbdcf9002add174aceba191211f3884cdc62))
|
|
11
|
+
|
|
12
|
+
### [0.0.25](https://github.com/GetStream/stream-video-js/compare/client0.0.24...client0.0.25) (2023-06-23)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **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))
|
|
18
|
+
|
|
5
19
|
### [0.0.24](https://github.com/GetStream/stream-video-js/compare/client0.0.23...client0.0.24) (2023-06-23)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -8352,12 +8352,26 @@ const CallTypes = new CallTypesRegistry([
|
|
|
8352
8352
|
]);
|
|
8353
8353
|
|
|
8354
8354
|
let sdkInfo;
|
|
8355
|
+
let osInfo;
|
|
8356
|
+
let deviceInfo;
|
|
8355
8357
|
const setSdkInfo = (info) => {
|
|
8356
8358
|
sdkInfo = info;
|
|
8357
8359
|
};
|
|
8358
8360
|
const getSdkInfo = () => {
|
|
8359
8361
|
return sdkInfo;
|
|
8360
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
|
+
};
|
|
8361
8375
|
|
|
8362
8376
|
/**
|
|
8363
8377
|
* An object representation of a `Call`.
|
|
@@ -8700,7 +8714,9 @@ class Call {
|
|
|
8700
8714
|
try {
|
|
8701
8715
|
const clientDetails = {};
|
|
8702
8716
|
if (isReactNative()) {
|
|
8703
|
-
//
|
|
8717
|
+
// Since RN doesn't support web, sharing browser info is not required
|
|
8718
|
+
clientDetails.os = getOSInfo();
|
|
8719
|
+
clientDetails.device = getDeviceInfo();
|
|
8704
8720
|
}
|
|
8705
8721
|
else {
|
|
8706
8722
|
const details = new UAParser(navigator.userAgent).getResult();
|
|
@@ -11082,7 +11098,7 @@ class StreamClient {
|
|
|
11082
11098
|
}
|
|
11083
11099
|
getUserAgent() {
|
|
11084
11100
|
return (this.userAgent ||
|
|
11085
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11101
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.25"}`);
|
|
11086
11102
|
}
|
|
11087
11103
|
setUserAgent(userAgent) {
|
|
11088
11104
|
this.userAgent = userAgent;
|
|
@@ -11816,5 +11832,5 @@ var browsers = /*#__PURE__*/Object.freeze({
|
|
|
11816
11832
|
isSafari: isSafari
|
|
11817
11833
|
});
|
|
11818
11834
|
|
|
11819
|
-
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 };
|
|
11820
11836
|
//# sourceMappingURL=index.browser.es.js.map
|