@stream-io/video-client 0.3.17 → 0.3.19

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,20 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.3.19](https://github.com/GetStream/stream-video-js/compare/client0.3.18...client0.3.19) (2023-09-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * initial device state handling ([#1092](https://github.com/GetStream/stream-video-js/issues/1092)) ([a98d07f](https://github.com/GetStream/stream-video-js/commit/a98d07f9e3eaf6bb059911538ba2a64a1550e53d))
11
+
12
+ ### [0.3.18](https://github.com/GetStream/stream-video-js/compare/client0.3.17...client0.3.18) (2023-09-15)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **DynascaleManager:** update subscription upon cleanup ([#1089](https://github.com/GetStream/stream-video-js/issues/1089)) ([bad8ac1](https://github.com/GetStream/stream-video-js/commit/bad8ac1651594b237b96987521000008753a80a5))
18
+
5
19
  ### [0.3.17](https://github.com/GetStream/stream-video-js/compare/client0.3.16...client0.3.17) (2023-09-14)
6
20
 
7
21
 
@@ -4,7 +4,7 @@ import { ServiceType, stackIntercept } from '@protobuf-ts/runtime-rpc';
4
4
  import axios, { AxiosHeaders } from 'axios';
5
5
  export { AxiosError } from 'axios';
6
6
  import { TwirpFetchTransport } from '@protobuf-ts/twirp-transport';
7
- import { ReplaySubject, BehaviorSubject, map as map$2, takeWhile, distinctUntilChanged as distinctUntilChanged$1, distinctUntilKeyChanged, combineLatest, Observable, debounceTime, concatMap, from, shareReplay, merge, filter, pairwise, tap, debounce, timer } from 'rxjs';
7
+ import { ReplaySubject, BehaviorSubject, map as map$2, takeWhile, distinctUntilChanged as distinctUntilChanged$1, shareReplay, distinctUntilKeyChanged, combineLatest, Observable, debounceTime, concatMap, from, merge, filter, pairwise, tap, debounce, timer } from 'rxjs';
8
8
  import * as SDP from 'sdp-transform';
9
9
  import { UAParser } from 'ua-parser-js';
10
10
  import WebSocket from 'isomorphic-ws';
@@ -7494,7 +7494,7 @@ const retryable = (rpc, logger) => __awaiter(void 0, void 0, void 0, function* (
7494
7494
  logger('trace', `SFU RPC response received for ${rpcCallResult.method.name}`, rpcCallResult);
7495
7495
  // if the RPC call failed, log the error and retry
7496
7496
  if (rpcCallResult.response.error) {
7497
- logger('error', 'SFU RPC Error:', rpcCallResult.response.error);
7497
+ logger('error', `SFU RPC Error (${rpcCallResult.method.name}):`, rpcCallResult.response.error);
7498
7498
  }
7499
7499
  retryAttempt++;
7500
7500
  } while (((_a = rpcCallResult.response.error) === null || _a === void 0 ? void 0 : _a.shouldRetry) &&
@@ -9454,7 +9454,7 @@ class DynascaleManager {
9454
9454
  const requestTrackWithDimensions = (debounceType, dimension) => {
9455
9455
  this.call.updateSubscriptionsPartial(trackType, { [sessionId]: { dimension } }, debounceType);
9456
9456
  };
9457
- const participant$ = this.call.state.participants$.pipe(map$2((participants) => participants.find((participant) => participant.sessionId === sessionId)), takeWhile((participant) => !!participant), distinctUntilChanged$1());
9457
+ const participant$ = this.call.state.participants$.pipe(map$2((participants) => participants.find((participant) => participant.sessionId === sessionId)), takeWhile((participant) => !!participant), distinctUntilChanged$1(), shareReplay(1));
9458
9458
  // keep copy for resize observer handler
9459
9459
  let viewportVisibilityState;
9460
9460
  const viewportVisibilityStateSubscription = boundParticipant.isLocalParticipant
@@ -9540,6 +9540,7 @@ class DynascaleManager {
9540
9540
  // https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide
9541
9541
  videoElement.muted = true;
9542
9542
  return () => {
9543
+ requestTrackWithDimensions(DebounceType.IMMEDIATE, undefined);
9543
9544
  viewportVisibilityStateSubscription === null || viewportVisibilityStateSubscription === void 0 ? void 0 : viewportVisibilityStateSubscription.unsubscribe();
9544
9545
  publishedTracksSubscription === null || publishedTracksSubscription === void 0 ? void 0 : publishedTracksSubscription.unsubscribe();
9545
9546
  streamSubscription.unsubscribe();
@@ -10117,7 +10118,7 @@ class InputMediaDeviceManager {
10117
10118
  // @ts-expect-error release() is present in react-native-webrtc and must be called to dispose the stream
10118
10119
  if (typeof this.state.mediaStream.release === 'function') {
10119
10120
  // @ts-expect-error
10120
- stream.release();
10121
+ this.state.mediaStream.release();
10121
10122
  }
10122
10123
  this.state.setMediaStream(undefined);
10123
10124
  }
@@ -13105,7 +13106,7 @@ class WSConnectionFallback {
13105
13106
  }
13106
13107
  }
13107
13108
 
13108
- const version = '0.3.17';
13109
+ const version = '0.3.19';
13109
13110
 
13110
13111
  const logger = getLogger(['location']);
13111
13112
  const HINT_URL = `https://hint.stream-io-video.com/`;