@stream-io/video-client 0.5.9 → 0.5.11

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.5.11](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.10...@stream-io/video-client-0.5.11) (2024-02-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **client:** add workaround for missing getConfiguration support in react native webrtc ([#1269](https://github.com/GetStream/stream-video-js/issues/1269)) ([ac163de](https://github.com/GetStream/stream-video-js/commit/ac163de4d89e86b4900c885baef564fdaf6b7bac))
11
+
12
+ ### [0.5.10](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.9...@stream-io/video-client-0.5.10) (2024-02-16)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **client:** do not set h264 as preference for iphone ([a014ab0](https://github.com/GetStream/stream-video-js/commit/a014ab0e5e2907d39fac45079d64d12997e2a63e))
18
+
5
19
  ### [0.5.9](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.8...@stream-io/video-client-0.5.9) (2024-02-12)
6
20
 
7
21
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Official JavaScript SDK and Low-Level Client for [Stream Video](https://getstream.io/video/docs/)
1
+ # Official JavaScript SDK and Low-Level Client for [Stream Video](https://getstream.io/video/sdk/javascript/)
2
2
 
3
3
  <img src="../../.readme-assets/Github-Graphic-JS.jpg" alt="Stream Video for JavaScript Header image" style="box-shadow: 0 3px 10px rgb(0 0 0 / 0.2); border-radius: 1rem" />
4
4
 
@@ -7547,6 +7547,16 @@ const logger$3 = getLogger(['Publisher']);
7547
7547
  * @internal
7548
7548
  */
7549
7549
  class Publisher {
7550
+ /**
7551
+ * Returns the current connection configuration.
7552
+ *
7553
+ * @internal
7554
+ */
7555
+ get connectionConfiguration() {
7556
+ if (this.pc.getConfiguration)
7557
+ return this.pc.getConfiguration();
7558
+ return this._connectionConfiguration;
7559
+ }
7550
7560
  /**
7551
7561
  * Constructs a new `Publisher` instance.
7552
7562
  *
@@ -7592,6 +7602,7 @@ class Publisher {
7592
7602
  this.isIceRestarting = false;
7593
7603
  this.createPeerConnection = (connectionConfig) => {
7594
7604
  const pc = new RTCPeerConnection(connectionConfig);
7605
+ this._connectionConfiguration = connectionConfig;
7595
7606
  pc.addEventListener('icecandidate', this.onIceCandidate);
7596
7607
  pc.addEventListener('negotiationneeded', this.onNegotiationNeeded);
7597
7608
  pc.addEventListener('icecandidateerror', this.onIceCandidateError);
@@ -7662,10 +7673,10 @@ class Publisher {
7662
7673
  if (!preferredCodec && trackType === TrackType.VIDEO) {
7663
7674
  if (isReactNative()) {
7664
7675
  const osName = getOSInfo()?.name.toLowerCase();
7665
- if (osName === 'ios' || osName === 'ipados') {
7676
+ if (osName === 'ipados') {
7666
7677
  // in ipads it was noticed that if vp8 codec is used
7667
7678
  // then the bytes sent is 0 in the outbound-rtp
7668
- // so we are forcing h264 codec for ipads and also in ios devices
7679
+ // so we are forcing h264 codec for ipads
7669
7680
  preferredCodec = 'H264';
7670
7681
  }
7671
7682
  else if (osName === 'android') {
@@ -7899,6 +7910,7 @@ class Publisher {
7899
7910
  this.migrateTo = async (sfuClient, connectionConfig) => {
7900
7911
  this.sfuClient = sfuClient;
7901
7912
  this.pc.setConfiguration(connectionConfig);
7913
+ this._connectionConfiguration = connectionConfig;
7902
7914
  const shouldRestartIce = this.pc.iceConnectionState === 'connected';
7903
7915
  if (shouldRestartIce) {
7904
7916
  // negotiate only if there are tracks to publish
@@ -8116,14 +8128,6 @@ class Publisher {
8116
8128
  await this.restartIce();
8117
8129
  });
8118
8130
  }
8119
- /**
8120
- * Returns the current connection configuration.
8121
- *
8122
- * @internal
8123
- */
8124
- get connectionConfiguration() {
8125
- return this.pc.getConfiguration();
8126
- }
8127
8131
  }
8128
8132
 
8129
8133
  const logger$2 = getLogger(['Subscriber']);
@@ -8132,6 +8136,16 @@ const logger$2 = getLogger(['Subscriber']);
8132
8136
  * media streams from the SFU.
8133
8137
  */
8134
8138
  class Subscriber {
8139
+ /**
8140
+ * Returns the current connection configuration.
8141
+ *
8142
+ * @internal
8143
+ */
8144
+ get connectionConfiguration() {
8145
+ if (this.pc.getConfiguration)
8146
+ return this.pc.getConfiguration();
8147
+ return this._connectionConfiguration;
8148
+ }
8135
8149
  /**
8136
8150
  * Constructs a new `Subscriber` instance.
8137
8151
  *
@@ -8150,6 +8164,7 @@ class Subscriber {
8150
8164
  */
8151
8165
  this.createPeerConnection = (connectionConfig) => {
8152
8166
  const pc = new RTCPeerConnection(connectionConfig);
8167
+ this._connectionConfiguration = connectionConfig;
8153
8168
  pc.addEventListener('icecandidate', this.onIceCandidate);
8154
8169
  pc.addEventListener('track', this.handleOnTrack);
8155
8170
  pc.addEventListener('icecandidateerror', this.onIceCandidateError);
@@ -14257,7 +14272,7 @@ class StreamClient {
14257
14272
  });
14258
14273
  };
14259
14274
  this.getUserAgent = () => {
14260
- const version = "0.5.9" ;
14275
+ const version = "0.5.11" ;
14261
14276
  return (this.userAgent ||
14262
14277
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14263
14278
  };