@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/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/sdk-info';
18
+ export * from './src/client-details';
19
19
  export * from './src/logger';
package/dist/index.es.js CHANGED
@@ -8355,12 +8355,26 @@ const CallTypes = new CallTypesRegistry([
8355
8355
  ]);
8356
8356
 
8357
8357
  let sdkInfo;
8358
+ let osInfo;
8359
+ let deviceInfo;
8358
8360
  const setSdkInfo = (info) => {
8359
8361
  sdkInfo = info;
8360
8362
  };
8361
8363
  const getSdkInfo = () => {
8362
8364
  return sdkInfo;
8363
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
+ };
8364
8378
 
8365
8379
  /**
8366
8380
  * An object representation of a `Call`.
@@ -8703,7 +8717,9 @@ class Call {
8703
8717
  try {
8704
8718
  const clientDetails = {};
8705
8719
  if (isReactNative()) {
8706
- // TODO RN
8720
+ // Since RN doesn't support web, sharing browser info is not required
8721
+ clientDetails.os = getOSInfo();
8722
+ clientDetails.device = getDeviceInfo();
8707
8723
  }
8708
8724
  else {
8709
8725
  const details = new UAParser(navigator.userAgent).getResult();
@@ -11086,7 +11102,7 @@ class StreamClient {
11086
11102
  }
11087
11103
  getUserAgent() {
11088
11104
  return (this.userAgent ||
11089
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.23"}`);
11105
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.25"}`);
11090
11106
  }
11091
11107
  setUserAgent(userAgent) {
11092
11108
  this.userAgent = userAgent;
@@ -11820,5 +11836,5 @@ var browsers = /*#__PURE__*/Object.freeze({
11820
11836
  isSafari: isSafari
11821
11837
  });
11822
11838
 
11823
- 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 };
11824
11840
  //# sourceMappingURL=index.es.js.map