@stream-io/video-react-sdk 0.4.4 → 0.4.6
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 +17 -0
- package/dist/index.cjs.js +8 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -10
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
- package/src/core/components/Audio/ParticipantsAudio.tsx +27 -18
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.4.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.4.5...@stream-io/video-react-sdk-0.4.6) (2023-11-02)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@stream-io/video-client` updated to version `0.4.4`
|
|
10
|
+
* `@stream-io/video-react-bindings` updated to version `0.3.4`
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* allow audio and screen share audio tracks, delay setSinkId ([#1176](https://github.com/GetStream/stream-video-js/issues/1176)) ([6a099c5](https://github.com/GetStream/stream-video-js/commit/6a099c5c7cc6f5d389961a7c594e914e19be4ddb))
|
|
15
|
+
|
|
16
|
+
### [0.4.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.4.4...@stream-io/video-react-sdk-0.4.5) (2023-11-01)
|
|
17
|
+
|
|
18
|
+
### Dependency Updates
|
|
19
|
+
|
|
20
|
+
* `@stream-io/video-client` updated to version `0.4.3`
|
|
21
|
+
* `@stream-io/video-react-bindings` updated to version `0.3.3`
|
|
5
22
|
### [0.4.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.4.3...@stream-io/video-react-sdk-0.4.4) (2023-11-01)
|
|
6
23
|
|
|
7
24
|
### Dependency Updates
|
package/dist/index.cjs.js
CHANGED
|
@@ -28,15 +28,13 @@ const ParticipantsAudio = (props) => {
|
|
|
28
28
|
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: participants.map((participant) => {
|
|
29
29
|
if (participant.isLocalParticipant)
|
|
30
30
|
return null;
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
return null;
|
|
31
|
+
const { publishedTracks, audioStream, screenShareAudioStream, sessionId, } = participant;
|
|
32
|
+
const hasAudio = publishedTracks.includes(videoClient.SfuModels.TrackType.AUDIO);
|
|
33
|
+
const audioTrackElement = hasAudio && audioStream && (react.createElement(Audio, { ...audioProps, trackType: "audioTrack", participant: participant, key: `${sessionId}-audio` }));
|
|
34
|
+
const hasScreenShareAudio = publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE_AUDIO);
|
|
35
|
+
const screenShareAudioTrackElement = hasScreenShareAudio &&
|
|
36
|
+
screenShareAudioStream && (react.createElement(Audio, { ...audioProps, trackType: "screenShareAudioTrack", participant: participant, key: `${sessionId}-screen-share-audio` }));
|
|
37
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [audioTrackElement, screenShareAudioTrackElement] }));
|
|
40
38
|
}) }));
|
|
41
39
|
};
|
|
42
40
|
|
|
@@ -2116,7 +2114,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
|
|
|
2116
2114
|
};
|
|
2117
2115
|
const hasScreenShare = (p) => !!p?.publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE);
|
|
2118
2116
|
|
|
2119
|
-
const [major, minor, patch] = ("0.4.
|
|
2117
|
+
const [major, minor, patch] = ("0.4.6" ).split('.');
|
|
2120
2118
|
videoClient.setSdkInfo({
|
|
2121
2119
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
2122
2120
|
major,
|