@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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.19.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.19.1...@stream-io/video-client-1.19.2) (2025-04-11)
6
+
7
+ ### Bug Fixes
8
+
9
+ - enhance tracing data ([#1758](https://github.com/GetStream/stream-video-js/issues/1758)) ([a6f2e3a](https://github.com/GetStream/stream-video-js/commit/a6f2e3a5256519e4884ec07e2dd2d4417f2482fe))
10
+
5
11
  ## [1.19.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.19.0...@stream-io/video-client-1.19.1) (2025-04-09)
6
12
 
7
13
  ### Bug Fixes
@@ -5643,7 +5643,7 @@ const aggregate = (stats) => {
5643
5643
  return report;
5644
5644
  };
5645
5645
 
5646
- const version = "1.19.1";
5646
+ const version = "1.19.2";
5647
5647
  const [major, minor, patch] = version.split('.');
5648
5648
  let sdkInfo = {
5649
5649
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -6041,7 +6041,7 @@ class BasePeerConnection {
6041
6041
  /**
6042
6042
  * Constructs a new `BasePeerConnection` instance.
6043
6043
  */
6044
- constructor(peerType, { sfuClient, connectionConfig, state, dispatcher, onUnrecoverableError, logTag, enableTracing, }) {
6044
+ constructor(peerType, { sfuClient, connectionConfig, state, dispatcher, onUnrecoverableError, logTag, clientDetails, enableTracing, }) {
6045
6045
  this.isIceRestarting = false;
6046
6046
  this.isDisposed = false;
6047
6047
  this.subscriptions = [];
@@ -6185,7 +6185,9 @@ class BasePeerConnection {
6185
6185
  ]);
6186
6186
  this.pc = new RTCPeerConnection(connectionConfig);
6187
6187
  if (enableTracing) {
6188
- this.tracer = new Tracer(logTag);
6188
+ const tag = `${logTag}-${peerType === PeerType.SUBSCRIBER ? 'sub' : 'pub'}`;
6189
+ this.tracer = new Tracer(tag);
6190
+ this.tracer.trace('clientDetails', clientDetails);
6189
6191
  this.tracer.trace('create', connectionConfig);
6190
6192
  traceRTCPeerConnection(this.pc, this.tracer.trace);
6191
6193
  }
@@ -8391,6 +8393,7 @@ class DynascaleManager {
8391
8393
  const { selectedDevice } = this.speaker.state;
8392
8394
  if (selectedDevice && 'setSinkId' in audioElement) {
8393
8395
  audioElement.setSinkId(selectedDevice);
8396
+ tracer.trace('navigator.mediaDevices.setSinkId', selectedDevice);
8394
8397
  }
8395
8398
  }
8396
8399
  });
@@ -8400,6 +8403,7 @@ class DynascaleManager {
8400
8403
  : this.speaker.state.selectedDevice$.subscribe((deviceId) => {
8401
8404
  if (deviceId) {
8402
8405
  audioElement.setSinkId(deviceId);
8406
+ tracer.trace('navigator.mediaDevices.setSinkId', deviceId);
8403
8407
  }
8404
8408
  });
8405
8409
  const volumeSubscription = combineLatest([
@@ -11169,6 +11173,7 @@ class Call {
11169
11173
  state: this.state,
11170
11174
  connectionConfig,
11171
11175
  logTag: String(this.sfuClientTag),
11176
+ clientDetails,
11172
11177
  enableTracing,
11173
11178
  onUnrecoverableError: (reason) => {
11174
11179
  this.reconnect(WebsocketReconnectStrategy.REJOIN, reason).catch((err) => {
@@ -11190,6 +11195,7 @@ class Call {
11190
11195
  connectionConfig,
11191
11196
  publishOptions,
11192
11197
  logTag: String(this.sfuClientTag),
11198
+ clientDetails,
11193
11199
  enableTracing,
11194
11200
  onUnrecoverableError: (reason) => {
11195
11201
  this.reconnect(WebsocketReconnectStrategy.REJOIN, reason).catch((err) => {
@@ -13426,7 +13432,7 @@ class StreamClient {
13426
13432
  this.getUserAgent = () => {
13427
13433
  if (!this.cachedUserAgent) {
13428
13434
  const { clientAppIdentifier = {} } = this.options;
13429
- const { sdkName = 'js', sdkVersion = "1.19.1", ...extras } = clientAppIdentifier;
13435
+ const { sdkName = 'js', sdkVersion = "1.19.2", ...extras } = clientAppIdentifier;
13430
13436
  this.cachedUserAgent = [
13431
13437
  `stream-video-${sdkName}-v${sdkVersion}`,
13432
13438
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),