@stream-io/video-react-sdk 0.4.0 → 0.4.1
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 +7 -0
- package/README.md +2 -2
- package/dist/index.cjs.js +9 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9 -5
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/VideoPreview/VideoPreview.d.ts +7 -3
- package/dist/src/translations/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/VideoPreview/VideoPreview.tsx +17 -6
- package/src/translations/en.json +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.4.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.4.0...@stream-io/video-react-sdk-0.4.1) (2023-10-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **video-preview:** accept `className` prop ([#1166](https://github.com/GetStream/stream-video-js/issues/1166)) ([bfbfa1e](https://github.com/GetStream/stream-video-js/commit/bfbfa1ed52d4a0b19f9221252640d2926ebda641))
|
|
11
|
+
|
|
5
12
|
## [0.4.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.3.47...@stream-io/video-react-sdk-0.4.0) (2023-10-27)
|
|
6
13
|
|
|
7
14
|
### Dependency Updates
|
package/README.md
CHANGED
|
@@ -60,14 +60,14 @@ Here are some of the features we support:
|
|
|
60
60
|
- [x] Livestream Player
|
|
61
61
|
- [x] Screenshare Audio
|
|
62
62
|
- [x] Screen-sharing bitrate and FPS control
|
|
63
|
-
- [ ] Fast-reconnects
|
|
64
63
|
- [x] New Device Management API
|
|
65
64
|
- [x] SFU retries
|
|
66
65
|
- [x] Call Thumbnails
|
|
67
|
-
- [ ] Query call session endpoint
|
|
68
66
|
|
|
69
67
|
### 0.5 milestone
|
|
70
68
|
|
|
69
|
+
- [ ] Fast-reconnects
|
|
70
|
+
- [ ] Query call session endpoint
|
|
71
71
|
- [ ] Enhanced UI components and theming
|
|
72
72
|
- [x] Enhanced SDK build system
|
|
73
73
|
- [ ] Typescript generics enhancements
|
package/dist/index.cjs.js
CHANGED
|
@@ -1481,12 +1481,14 @@ const StreamTheme = ({ as: Component = 'div', className, children, ...props }) =
|
|
|
1481
1481
|
};
|
|
1482
1482
|
|
|
1483
1483
|
const DefaultDisabledVideoPreview = () => {
|
|
1484
|
-
|
|
1484
|
+
const { t } = videoReactBindings.useI18n();
|
|
1485
|
+
return jsxRuntime.jsx("div", { children: t('Video is disabled') });
|
|
1485
1486
|
};
|
|
1486
1487
|
const DefaultNoCameraPreview = () => {
|
|
1487
|
-
|
|
1488
|
+
const { t } = videoReactBindings.useI18n();
|
|
1489
|
+
return jsxRuntime.jsx("div", { children: t('No camera found') });
|
|
1488
1490
|
};
|
|
1489
|
-
const VideoPreview = ({ mirror = true, DisabledVideoPreview = DefaultDisabledVideoPreview, NoCameraPreview = DefaultNoCameraPreview, StartingCameraPreview = LoadingIndicator, }) => {
|
|
1491
|
+
const VideoPreview = ({ className, mirror = true, DisabledVideoPreview = DefaultDisabledVideoPreview, NoCameraPreview = DefaultNoCameraPreview, StartingCameraPreview = LoadingIndicator, }) => {
|
|
1490
1492
|
const { useCameraState } = videoReactBindings.useCallStateHooks();
|
|
1491
1493
|
const { devices, status, isMute, mediaStream } = useCameraState();
|
|
1492
1494
|
let contents;
|
|
@@ -1503,7 +1505,7 @@ const VideoPreview = ({ mirror = true, DisabledVideoPreview = DefaultDisabledVid
|
|
|
1503
1505
|
else {
|
|
1504
1506
|
contents = jsxRuntime.jsx(DisabledVideoPreview, {});
|
|
1505
1507
|
}
|
|
1506
|
-
return jsxRuntime.jsx("div", { className:
|
|
1508
|
+
return (jsxRuntime.jsx("div", { className: clsx('str-video__video-preview-container', className), children: contents }));
|
|
1507
1509
|
};
|
|
1508
1510
|
|
|
1509
1511
|
const DebugParticipantPublishQuality = (props) => {
|
|
@@ -1784,6 +1786,8 @@ var en = {
|
|
|
1784
1786
|
"Microphone off": "Microphone off",
|
|
1785
1787
|
"Camera on": "Camera on",
|
|
1786
1788
|
"Camera off": "Camera off",
|
|
1789
|
+
"No camera found": "No camera found",
|
|
1790
|
+
"Video is disabled": "Video is disabled",
|
|
1787
1791
|
Pinned: Pinned,
|
|
1788
1792
|
Unpin: Unpin,
|
|
1789
1793
|
Pin: Pin,
|
|
@@ -2093,7 +2097,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
|
|
|
2093
2097
|
};
|
|
2094
2098
|
const hasScreenShare = (p) => !!p?.publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE);
|
|
2095
2099
|
|
|
2096
|
-
const [major, minor, patch] = ("0.4.
|
|
2100
|
+
const [major, minor, patch] = ("0.4.1" ).split('.');
|
|
2097
2101
|
videoClient.setSdkInfo({
|
|
2098
2102
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
2099
2103
|
major,
|