@stream-io/video-react-sdk 0.4.6 → 0.4.7
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/dist/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@ export * from '@stream-io/video-client';
|
|
|
3
3
|
import { useCall, useCallStateHooks, useHasPermissions, useI18n, Restricted, useConnectedUser, StreamCallProvider, StreamVideoProvider } from '@stream-io/video-react-bindings';
|
|
4
4
|
export * from '@stream-io/video-react-bindings';
|
|
5
5
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
import { useState, useEffect,
|
|
6
|
+
import { useState, useEffect, Fragment as Fragment$1, isValidElement, forwardRef, useLayoutEffect, useCallback, useRef, useMemo, createContext, useContext } from 'react';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { useFloating, offset, shift, flip, size, autoUpdate } from '@floating-ui/react';
|
|
9
9
|
import { ResponsiveLine } from '@nivo/line';
|
|
@@ -30,11 +30,11 @@ const ParticipantsAudio = (props) => {
|
|
|
30
30
|
return null;
|
|
31
31
|
const { publishedTracks, audioStream, screenShareAudioStream, sessionId, } = participant;
|
|
32
32
|
const hasAudio = publishedTracks.includes(SfuModels.TrackType.AUDIO);
|
|
33
|
-
const audioTrackElement = hasAudio && audioStream && (
|
|
33
|
+
const audioTrackElement = hasAudio && audioStream && (jsx(Audio, { ...audioProps, trackType: "audioTrack", participant: participant }));
|
|
34
34
|
const hasScreenShareAudio = publishedTracks.includes(SfuModels.TrackType.SCREEN_SHARE_AUDIO);
|
|
35
35
|
const screenShareAudioTrackElement = hasScreenShareAudio &&
|
|
36
|
-
screenShareAudioStream && (
|
|
37
|
-
return (jsxs(Fragment, { children: [audioTrackElement, screenShareAudioTrackElement] }));
|
|
36
|
+
screenShareAudioStream && (jsx(Audio, { ...audioProps, trackType: "screenShareAudioTrack", participant: participant }));
|
|
37
|
+
return (jsxs(Fragment$1, { children: [audioTrackElement, screenShareAudioTrackElement] }, sessionId));
|
|
38
38
|
}) }));
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -2114,7 +2114,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
|
|
|
2114
2114
|
};
|
|
2115
2115
|
const hasScreenShare = (p) => !!p?.publishedTracks.includes(SfuModels.TrackType.SCREEN_SHARE);
|
|
2116
2116
|
|
|
2117
|
-
const [major, minor, patch] = ("0.4.
|
|
2117
|
+
const [major, minor, patch] = ("0.4.7" ).split('.');
|
|
2118
2118
|
setSdkInfo({
|
|
2119
2119
|
type: SfuModels.SdkType.REACT,
|
|
2120
2120
|
major,
|