@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/dist/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export * from './src/sorting';
|
|
|
15
15
|
export * from './src/helpers/ViewportTracker';
|
|
16
16
|
export * from './src/helpers/sound-detector';
|
|
17
17
|
export * as Browsers from './src/helpers/browsers';
|
|
18
|
-
export * from './src/
|
|
18
|
+
export * from './src/client-details';
|
|
19
19
|
export * from './src/logger';
|
package/dist/index.es.js
CHANGED
|
@@ -7768,6 +7768,7 @@ const registerEventHandlers = (call, state, dispatcher) => {
|
|
|
7768
7768
|
'call.session_participant_left': watchCallSessionParticipantLeft(state),
|
|
7769
7769
|
'call.unblocked_user': watchUnblockedUser(state),
|
|
7770
7770
|
'call.updated': watchCallUpdated(state),
|
|
7771
|
+
'call.user_muted': () => console.log('call.user_muted received'),
|
|
7771
7772
|
};
|
|
7772
7773
|
const eventHandlers = [
|
|
7773
7774
|
watchChangePublishQuality(dispatcher, call),
|
|
@@ -8354,12 +8355,26 @@ const CallTypes = new CallTypesRegistry([
|
|
|
8354
8355
|
]);
|
|
8355
8356
|
|
|
8356
8357
|
let sdkInfo;
|
|
8358
|
+
let osInfo;
|
|
8359
|
+
let deviceInfo;
|
|
8357
8360
|
const setSdkInfo = (info) => {
|
|
8358
8361
|
sdkInfo = info;
|
|
8359
8362
|
};
|
|
8360
8363
|
const getSdkInfo = () => {
|
|
8361
8364
|
return sdkInfo;
|
|
8362
8365
|
};
|
|
8366
|
+
const setOSInfo = (info) => {
|
|
8367
|
+
osInfo = info;
|
|
8368
|
+
};
|
|
8369
|
+
const getOSInfo = () => {
|
|
8370
|
+
return osInfo;
|
|
8371
|
+
};
|
|
8372
|
+
const setDeviceInfo = (info) => {
|
|
8373
|
+
deviceInfo = info;
|
|
8374
|
+
};
|
|
8375
|
+
const getDeviceInfo = () => {
|
|
8376
|
+
return deviceInfo;
|
|
8377
|
+
};
|
|
8363
8378
|
|
|
8364
8379
|
/**
|
|
8365
8380
|
* An object representation of a `Call`.
|
|
@@ -8702,7 +8717,9 @@ class Call {
|
|
|
8702
8717
|
try {
|
|
8703
8718
|
const clientDetails = {};
|
|
8704
8719
|
if (isReactNative()) {
|
|
8705
|
-
//
|
|
8720
|
+
// Since RN doesn't support web, sharing browser info is not required
|
|
8721
|
+
clientDetails.os = getOSInfo();
|
|
8722
|
+
clientDetails.device = getDeviceInfo();
|
|
8706
8723
|
}
|
|
8707
8724
|
else {
|
|
8708
8725
|
const details = new UAParser(navigator.userAgent).getResult();
|
|
@@ -11085,7 +11102,7 @@ class StreamClient {
|
|
|
11085
11102
|
}
|
|
11086
11103
|
getUserAgent() {
|
|
11087
11104
|
return (this.userAgent ||
|
|
11088
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11105
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.24"}`);
|
|
11089
11106
|
}
|
|
11090
11107
|
setUserAgent(userAgent) {
|
|
11091
11108
|
this.userAgent = userAgent;
|
|
@@ -11819,5 +11836,5 @@ var browsers = /*#__PURE__*/Object.freeze({
|
|
|
11819
11836
|
isSafari: isSafari
|
|
11820
11837
|
});
|
|
11821
11838
|
|
|
11822
|
-
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 };
|
|
11839
|
+
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 };
|
|
11823
11840
|
//# sourceMappingURL=index.es.js.map
|