@stream-io/video-client 1.19.1 → 1.19.2

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.es.js CHANGED
@@ -5644,7 +5644,7 @@ const aggregate = (stats) => {
5644
5644
  return report;
5645
5645
  };
5646
5646
 
5647
- const version = "1.19.1";
5647
+ const version = "1.19.2";
5648
5648
  const [major, minor, patch] = version.split('.');
5649
5649
  let sdkInfo = {
5650
5650
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -6042,7 +6042,7 @@ class BasePeerConnection {
6042
6042
  /**
6043
6043
  * Constructs a new `BasePeerConnection` instance.
6044
6044
  */
6045
- constructor(peerType, { sfuClient, connectionConfig, state, dispatcher, onUnrecoverableError, logTag, enableTracing, }) {
6045
+ constructor(peerType, { sfuClient, connectionConfig, state, dispatcher, onUnrecoverableError, logTag, clientDetails, enableTracing, }) {
6046
6046
  this.isIceRestarting = false;
6047
6047
  this.isDisposed = false;
6048
6048
  this.subscriptions = [];
@@ -6186,7 +6186,9 @@ class BasePeerConnection {
6186
6186
  ]);
6187
6187
  this.pc = new RTCPeerConnection(connectionConfig);
6188
6188
  if (enableTracing) {
6189
- this.tracer = new Tracer(logTag);
6189
+ const tag = `${logTag}-${peerType === PeerType.SUBSCRIBER ? 'sub' : 'pub'}`;
6190
+ this.tracer = new Tracer(tag);
6191
+ this.tracer.trace('clientDetails', clientDetails);
6190
6192
  this.tracer.trace('create', connectionConfig);
6191
6193
  traceRTCPeerConnection(this.pc, this.tracer.trace);
6192
6194
  }
@@ -8392,6 +8394,7 @@ class DynascaleManager {
8392
8394
  const { selectedDevice } = this.speaker.state;
8393
8395
  if (selectedDevice && 'setSinkId' in audioElement) {
8394
8396
  audioElement.setSinkId(selectedDevice);
8397
+ tracer.trace('navigator.mediaDevices.setSinkId', selectedDevice);
8395
8398
  }
8396
8399
  }
8397
8400
  });
@@ -8401,6 +8404,7 @@ class DynascaleManager {
8401
8404
  : this.speaker.state.selectedDevice$.subscribe((deviceId) => {
8402
8405
  if (deviceId) {
8403
8406
  audioElement.setSinkId(deviceId);
8407
+ tracer.trace('navigator.mediaDevices.setSinkId', deviceId);
8404
8408
  }
8405
8409
  });
8406
8410
  const volumeSubscription = combineLatest([
@@ -11170,6 +11174,7 @@ class Call {
11170
11174
  state: this.state,
11171
11175
  connectionConfig,
11172
11176
  logTag: String(this.sfuClientTag),
11177
+ clientDetails,
11173
11178
  enableTracing,
11174
11179
  onUnrecoverableError: (reason) => {
11175
11180
  this.reconnect(WebsocketReconnectStrategy.REJOIN, reason).catch((err) => {
@@ -11191,6 +11196,7 @@ class Call {
11191
11196
  connectionConfig,
11192
11197
  publishOptions,
11193
11198
  logTag: String(this.sfuClientTag),
11199
+ clientDetails,
11194
11200
  enableTracing,
11195
11201
  onUnrecoverableError: (reason) => {
11196
11202
  this.reconnect(WebsocketReconnectStrategy.REJOIN, reason).catch((err) => {
@@ -13425,7 +13431,7 @@ class StreamClient {
13425
13431
  this.getUserAgent = () => {
13426
13432
  if (!this.cachedUserAgent) {
13427
13433
  const { clientAppIdentifier = {} } = this.options;
13428
- const { sdkName = 'js', sdkVersion = "1.19.1", ...extras } = clientAppIdentifier;
13434
+ const { sdkName = 'js', sdkVersion = "1.19.2", ...extras } = clientAppIdentifier;
13429
13435
  this.cachedUserAgent = [
13430
13436
  `stream-video-${sdkName}-v${sdkVersion}`,
13431
13437
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),