@stream-io/video-client 1.15.4 → 1.15.6

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
@@ -5499,7 +5499,7 @@ const computeVideoLayers = (videoTrack, publishOption) => {
5499
5499
  rid,
5500
5500
  width: Math.round(width / downscaleFactor),
5501
5501
  height: Math.round(height / downscaleFactor),
5502
- maxBitrate: maxBitrate / bitrateFactor || defaultBitratePerRid[rid],
5502
+ maxBitrate: Math.round(maxBitrate / bitrateFactor) || defaultBitratePerRid[rid],
5503
5503
  maxFramerate: fps,
5504
5504
  };
5505
5505
  if (svcCodec) {
@@ -7357,7 +7357,7 @@ const aggregate = (stats) => {
7357
7357
  return report;
7358
7358
  };
7359
7359
 
7360
- const version = "1.15.4";
7360
+ const version = "1.15.6";
7361
7361
  const [major, minor, patch] = version.split('.');
7362
7362
  let sdkInfo = {
7363
7363
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -10254,6 +10254,7 @@ class Call {
10254
10254
  this.sfuClient = undefined;
10255
10255
  this.dynascaleManager.setSfuClient(undefined);
10256
10256
  this.state.setCallingState(CallingState.LEFT);
10257
+ this.state.setParticipants([]);
10257
10258
  this.state.dispose();
10258
10259
  // Call all leave call hooks, e.g. to clean up global event handlers
10259
10260
  this.leaveCallHooks.forEach((hook) => hook());
@@ -12861,7 +12862,7 @@ class StreamClient {
12861
12862
  return await this.wsConnection.connect(this.defaultWSTimeout);
12862
12863
  };
12863
12864
  this.getUserAgent = () => {
12864
- const version = "1.15.4";
12865
+ const version = "1.15.6";
12865
12866
  return (this.userAgent ||
12866
12867
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
12867
12868
  };