@stream-io/video-react-sdk 0.4.19 → 0.4.21
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
|
@@ -1130,6 +1130,17 @@ const ParticipantActionsContextMenu = ({ participant, participantViewElement, vi
|
|
|
1130
1130
|
.catch(console.error)
|
|
1131
1131
|
.finally(() => setFullscreenModeOn(false));
|
|
1132
1132
|
};
|
|
1133
|
+
useEffect(() => {
|
|
1134
|
+
// handles the case when fullscreen mode is toggled externally,
|
|
1135
|
+
// e.g., by pressing ESC key or some other keyboard shortcut
|
|
1136
|
+
const handleFullscreenChange = () => {
|
|
1137
|
+
setFullscreenModeOn(!!document.fullscreenElement);
|
|
1138
|
+
};
|
|
1139
|
+
document.addEventListener('fullscreenchange', handleFullscreenChange);
|
|
1140
|
+
return () => {
|
|
1141
|
+
document.removeEventListener('fullscreenchange', handleFullscreenChange);
|
|
1142
|
+
};
|
|
1143
|
+
}, []);
|
|
1133
1144
|
useEffect(() => {
|
|
1134
1145
|
if (!videoElement)
|
|
1135
1146
|
return;
|
|
@@ -1966,7 +1977,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
|
|
|
1966
1977
|
};
|
|
1967
1978
|
const hasScreenShare = (p) => !!p?.publishedTracks.includes(SfuModels.TrackType.SCREEN_SHARE);
|
|
1968
1979
|
|
|
1969
|
-
const [major, minor, patch] = ("0.4.
|
|
1980
|
+
const [major, minor, patch] = ("0.4.21" ).split('.');
|
|
1970
1981
|
setSdkInfo({
|
|
1971
1982
|
type: SfuModels.SdkType.REACT,
|
|
1972
1983
|
major,
|