fix(device-selection) hide framerate selection on mobile browsers

Screen-sharing is not supported there.
This commit is contained in:
Saúl Ibarra Corretgé
2025-01-13 15:30:45 +01:00
committed by Saúl Ibarra Corretgé
parent 44bd70179c
commit 5c9b8a5a5f
2 changed files with 8 additions and 1 deletions

View File

@@ -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>

View File

@@ -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,