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(device-selection) hide framerate selection on mobile browsers

Saúl Ibarra Corretgé5c9b8a5a5f52
diff --git a/react/features/device-selection/components/VideoDeviceSelection.web.tsx b/react/features/device-selection/components/VideoDeviceSelection.web.tsx
index e2f3132e51..3868b04542 100644
--- a/react/features/device-selection/components/VideoDeviceSelection.web.tsx
+++ b/react/features/device-selection/components/VideoDeviceSelection.web.tsx
@@ -45,6 +45,11 @@ export interface IProps extends AbstractDialogTabProps, WithTranslation {
*/
desktopShareFramerates: Array<number>;
+ /**
+ * True if desktop share settings should be hidden (mobile browsers).
+ */
+ disableDesktopShareSettings: boolean;
+
/**
* True if device changing is configured to be disallowed. Selectors
* will display as disabled.
@@ -208,6 +213,7 @@ class VideoDeviceSelection extends AbstractDialogTab<IProps, IState> {
*/
render() {
const {
+ disableDesktopShareSettings,
disableLocalVideoFlip,
hideAdditionalSettings,
hideVideoInputPreview,
@@ -240,7 +246,7 @@ class VideoDeviceSelection extends AbstractDialogTab<IProps, IState> {
onChange = { () => super._onChange({ localFlipX: !localFlipX }) } />
</div>
)}
- {this._renderFramerateSelect()}
+ {!disableDesktopShareSettings && this._renderFramerateSelect()}
</>
)}
</div>
diff --git a/react/features/device-selection/functions.web.ts b/react/features/device-selection/functions.web.ts
index e2fd11abd1..76f5b2a25b 100644
--- a/react/features/device-selection/functions.web.ts
+++ b/react/features/device-selection/functions.web.ts
@@ -126,6 +126,7 @@ export function getVideoDeviceSelectionDialogProps(stateful: IStateful, isDispla
return {
currentFramerate: framerate,
desktopShareFramerates: SS_SUPPORTED_FRAMERATES,
+ disableDesktopShareSettings: isMobileBrowser(),
disableDeviceChange: !JitsiMeetJS.mediaDevices.isDeviceChangeAvailable(),
disableVideoInputSelect,
disableLocalVideoFlip,