Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(settings) Fixes missing previews after device permissions are granted.

mishraditi78931d4f0df4
diff --git a/react/features/device-selection/components/VideoDeviceSelection.web.tsx b/react/features/device-selection/components/VideoDeviceSelection.web.tsx
index 8eb9198d64..2951b48292 100644
--- a/react/features/device-selection/components/VideoDeviceSelection.web.tsx
+++ b/react/features/device-selection/components/VideoDeviceSelection.web.tsx
@@ -194,6 +194,13 @@ class VideoDeviceSelection extends AbstractDialogTab<IProps, IState> {
!== this.props.selectedVideoInputId) {
this._createVideoInputTrack(this.props.selectedVideoInputId);
}
+
+ if (!prevProps.hasVideoPermission && this.props.hasVideoPermission) {
+ this._createVideoInputTrack(this.props.selectedVideoInputId)
+ ?.then(() => {
+ this.props.dispatch(getAvailableDevices());
+ });
+ }
}
/**