@stream-io/video-client 0.3.34 → 0.3.35

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
@@ -8337,6 +8337,12 @@ class CallState {
8337
8337
  broadcasting: false,
8338
8338
  }));
8339
8339
  };
8340
+ this.updateFromHLSBroadcastingFailed = () => {
8341
+ this.setCurrentValue(this.egressSubject, (egress) => ({
8342
+ ...egress,
8343
+ broadcasting: false,
8344
+ }));
8345
+ };
8340
8346
  this.updateFromHLSBroadcastStarted = (event) => {
8341
8347
  this.setCurrentValue(this.egressSubject, (egress) => ({
8342
8348
  ...egress,
@@ -8463,12 +8469,12 @@ class CallState {
8463
8469
  this.eventHandlers = {
8464
8470
  // these events are not updating the call state:
8465
8471
  'call.permission_request': undefined,
8472
+ 'call.recording_failed': undefined,
8473
+ 'call.recording_ready': undefined,
8466
8474
  'call.user_muted': undefined,
8467
8475
  'connection.error': undefined,
8468
8476
  'connection.ok': undefined,
8469
8477
  'health.check': undefined,
8470
- 'call.recording_failed': undefined,
8471
- 'call.recording_ready': undefined,
8472
8478
  custom: undefined,
8473
8479
  // events that update call state:
8474
8480
  'call.accepted': (e) => this.updateFromCallResponse(e.call),
@@ -8478,6 +8484,7 @@ class CallState {
8478
8484
  this.updateFromCallResponse(e.call);
8479
8485
  this.setCurrentValue(this.endedBySubject, e.user);
8480
8486
  },
8487
+ 'call.hls_broadcasting_failed': this.updateFromHLSBroadcastingFailed,
8481
8488
  'call.hls_broadcasting_started': this.updateFromHLSBroadcastStarted,
8482
8489
  'call.hls_broadcasting_stopped': this.updateFromHLSBroadcastStopped,
8483
8490
  'call.live_started': (e) => this.updateFromCallResponse(e.call),
@@ -13969,7 +13976,7 @@ class StreamClient {
13969
13976
  });
13970
13977
  };
13971
13978
  this.getUserAgent = () => {
13972
- const version = "0.3.34" ;
13979
+ const version = "0.3.35" ;
13973
13980
  return (this.userAgent ||
13974
13981
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
13975
13982
  };