@stream-io/video-react-sdk 0.3.42 → 0.3.44

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,24 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.3.44](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.3.43...@stream-io/video-react-sdk-0.3.44) (2023-10-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * sync video "paused" state more accurately ([#1150](https://github.com/GetStream/stream-video-js/issues/1150)) ([39cd42f](https://github.com/GetStream/stream-video-js/commit/39cd42f0035bbabdd9bb078fc8df9192f3b6c42f))
11
+
12
+ ### [0.3.43](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.3.42...@stream-io/video-react-sdk-0.3.43) (2023-10-19)
13
+
14
+ ### Dependency Updates
15
+
16
+ * `@stream-io/video-client` updated to version `0.3.35`
17
+ * `@stream-io/video-react-bindings` updated to version `0.2.36`
18
+
19
+ ### Features
20
+
21
+ * mute screenshare_audio, update to the newest OpenAPI schema ([#1148](https://github.com/GetStream/stream-video-js/issues/1148)) ([81c45a7](https://github.com/GetStream/stream-video-js/commit/81c45a77e6a526de05ce5457357d212fb3e613d9))
22
+
5
23
  ### [0.3.42](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.3.41...@stream-io/video-react-sdk-0.3.42) (2023-10-18)
6
24
 
7
25
  ### Dependency Updates
package/dist/index.cjs.js CHANGED
@@ -131,6 +131,10 @@ const Video$1 = ({ trackType, participant, className, VideoPlaceholder = Default
131
131
  const { width = 0, height = 0 } = track.getSettings();
132
132
  setIsWideMode(width >= height);
133
133
  };
134
+ // playback may have started before we had a chance to
135
+ // attach the 'play/pause' event listener, so we set the state
136
+ // here to make sure it's in sync
137
+ setIsVideoPaused(videoElement.paused);
134
138
  videoElement.addEventListener('play', handlePlayPause);
135
139
  videoElement.addEventListener('pause', handlePlayPause);
136
140
  track.addEventListener('unmute', handlePlayPause);
@@ -138,6 +142,8 @@ const Video$1 = ({ trackType, participant, className, VideoPlaceholder = Default
138
142
  videoElement.removeEventListener('play', handlePlayPause);
139
143
  videoElement.removeEventListener('pause', handlePlayPause);
140
144
  track.removeEventListener('unmute', handlePlayPause);
145
+ // reset the 'pause' state once we unmount the video element
146
+ setIsVideoPaused(true);
141
147
  };
142
148
  }, [stream, videoElement]);
143
149
  if (!call)
@@ -2621,7 +2627,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
2621
2627
  };
2622
2628
  const hasScreenShare = (p) => !!p?.publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE);
2623
2629
 
2624
- const [major, minor, patch] = ("0.3.42" ).split('.');
2630
+ const [major, minor, patch] = ("0.3.44" ).split('.');
2625
2631
  videoClient.setSdkInfo({
2626
2632
  type: videoClient.SfuModels.SdkType.REACT,
2627
2633
  major,