@stream-io/video-react-sdk 1.37.7 → 1.38.0
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 +4389 -0
- package/dist/embedded.cjs.js +4 -2
- package/dist/embedded.cjs.js.map +1 -1
- package/dist/embedded.es.js +5 -3
- package/dist/embedded.es.js.map +1 -1
- package/dist/index.cjs.js +5 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/dist/src/translations/index.d.ts +1 -0
- package/package.json +3 -3
- package/src/core/components/ParticipantView/DefaultParticipantViewUI.tsx +8 -0
- package/src/translations/en.json +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -1399,7 +1399,7 @@ const SpeakerTest = (props) => {
|
|
|
1399
1399
|
const audioElementRef = react.useRef(null);
|
|
1400
1400
|
const [isPlaying, setIsPlaying] = react.useState(false);
|
|
1401
1401
|
const { t } = videoReactBindings.useI18n();
|
|
1402
|
-
const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.
|
|
1402
|
+
const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.38.0"}/assets/piano.mp3`, } = props;
|
|
1403
1403
|
// Update audio output device when selection changes
|
|
1404
1404
|
react.useEffect(() => {
|
|
1405
1405
|
const audio = audioElementRef.current;
|
|
@@ -2396,7 +2396,8 @@ const ParticipantDetails = ({ indicatorsVisible = true, }) => {
|
|
|
2396
2396
|
const canUnpin = !!pin && pin.isLocalPin;
|
|
2397
2397
|
const isTrackPaused = trackType !== 'none' ? videoClient.hasPausedTrack(participant, trackType) : false;
|
|
2398
2398
|
const isAudioConnecting = videoReactBindings.useIsAudioConnecting(participant);
|
|
2399
|
-
|
|
2399
|
+
const isVideoConnecting = videoReactBindings.useIsVideoConnecting(participant);
|
|
2400
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "str-video__participant-details", children: jsxRuntime.jsxs("div", { className: "str-video__participant-details__name", children: [name || userId, indicatorsVisible && isAudioConnecting && (jsxRuntime.jsx(LoadingIndicator, { className: "str-video__participant-details__name--audio-connecting", tooltip: t('Audio is connecting...') })), indicatorsVisible && !hasAudioTrack && (jsxRuntime.jsx("span", { className: "str-video__participant-details__name--audio-muted" })), indicatorsVisible && isVideoConnecting && (jsxRuntime.jsx(LoadingIndicator, { className: "str-video__participant-details__name--video-connecting", tooltip: t('Video is connecting...') })), indicatorsVisible && !hasVideoTrack && (jsxRuntime.jsx("span", { className: "str-video__participant-details__name--video-muted" })), indicatorsVisible && isTrackPaused && (jsxRuntime.jsx("span", { title: t('Video paused due to insufficient bandwidth'), className: "str-video__participant-details__name--track-paused" })), indicatorsVisible && pin && (jsxRuntime.jsx("span", { title: canUnpin ? t('Unpin') : t('Pinned'), onClick: canUnpin ? () => call?.unpin(sessionId) : undefined, className: "str-video__participant-details__name--pinned" })), indicatorsVisible && jsxRuntime.jsx(SpeechIndicator, {})] }) }), indicatorsVisible && (jsxRuntime.jsx(Notification, { isVisible: isLocalParticipant &&
|
|
2400
2401
|
connectionQuality === videoClient.SfuModels.ConnectionQuality.POOR, message: t('Poor connection quality'), children: connectionQualityAsString && (jsxRuntime.jsx("span", { className: clsx('str-video__participant-details__connection-quality', `str-video__participant-details__connection-quality--${connectionQualityAsString}`), title: connectionQualityAsString })) }))] }));
|
|
2401
2402
|
};
|
|
2402
2403
|
const SpeechIndicator = () => {
|
|
@@ -2576,6 +2577,7 @@ var en = {
|
|
|
2576
2577
|
"Poor connection quality": "Poor connection quality. Please check your internet connection.",
|
|
2577
2578
|
"Video paused due to insufficient bandwidth": "Video paused due to insufficient bandwidth",
|
|
2578
2579
|
"Audio is connecting...": "Audio is connecting...",
|
|
2580
|
+
"Video is connecting...": "Video is connecting...",
|
|
2579
2581
|
Participants: Participants,
|
|
2580
2582
|
Anonymous: Anonymous,
|
|
2581
2583
|
"No participants found": "No participants found",
|
|
@@ -3264,7 +3266,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
|
|
|
3264
3266
|
return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
|
|
3265
3267
|
};
|
|
3266
3268
|
|
|
3267
|
-
const [major, minor, patch] = ("1.
|
|
3269
|
+
const [major, minor, patch] = ("1.38.0").split('.');
|
|
3268
3270
|
videoClient.setSdkInfo({
|
|
3269
3271
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
3270
3272
|
major,
|