@stream-io/video-client 0.0.4 → 0.0.5

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,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.0.5](https://github.com/GetStream/stream-video-js/compare/client0.0.4...client0.0.5) (2023-06-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * adjustments to the new egress response structure ([#595](https://github.com/GetStream/stream-video-js/issues/595)) ([3b3edea](https://github.com/GetStream/stream-video-js/commit/3b3edea7d032a50cb0757c6b46114e8009ae56fc))
11
+
5
12
  ### [0.0.4](https://github.com/GetStream/stream-video-js/compare/client0.0.3...client0.0.4) (2023-06-06)
6
13
 
7
14
 
@@ -7543,14 +7543,17 @@ const watchCallBroadcastingStarted = (state) => {
7543
7543
  return function onCallBroadcastingStarted(event) {
7544
7544
  if (event.type !== 'call.broadcasting_started')
7545
7545
  return;
7546
- state.setMetadata((metadata) => (Object.assign(Object.assign({}, metadata), { broadcasting: true, hls_playlist_url: event.hls_playlist_url })));
7546
+ state.setMetadata((metadata) => (Object.assign(Object.assign({}, metadata), { egress: Object.assign(Object.assign({}, metadata.egress), { broadcasting: true, hls: Object.assign(Object.assign({}, metadata.egress.hls), { playlist_url: event.hls_playlist_url }) }) })));
7547
7547
  };
7548
7548
  };
7549
+ /**
7550
+ * Watches for `call.broadcasting_stopped` events.
7551
+ */
7549
7552
  const watchCallBroadcastingStopped = (state) => {
7550
7553
  return function onCallBroadcastingStopped(event) {
7551
7554
  if (event.type !== 'call.broadcasting_stopped')
7552
7555
  return;
7553
- state.setMetadata((metadata) => (Object.assign(Object.assign({}, metadata), { broadcasting: false })));
7556
+ state.setMetadata((metadata) => (Object.assign(Object.assign({}, metadata), { egress: Object.assign(Object.assign({}, metadata.egress), { broadcasting: false }) })));
7554
7557
  };
7555
7558
  };
7556
7559
 
@@ -10990,7 +10993,7 @@ class StreamClient {
10990
10993
  }
10991
10994
  getUserAgent() {
10992
10995
  return (this.userAgent ||
10993
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.3"}`);
10996
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.4"}`);
10994
10997
  }
10995
10998
  setUserAgent(userAgent) {
10996
10999
  this.userAgent = userAgent;