Hide the input list on both, android+ios.
This will now be decided based on controlled media devices.
This commit is contained in:
@@ -284,8 +284,7 @@ export const getUrlParams = (
|
|||||||
fontScale: Number.isNaN(fontScale) ? null : fontScale,
|
fontScale: Number.isNaN(fontScale) ? null : fontScale,
|
||||||
allowIceFallback: parser.getFlagParam("allowIceFallback"),
|
allowIceFallback: parser.getFlagParam("allowIceFallback"),
|
||||||
perParticipantE2EE: parser.getFlagParam("perParticipantE2EE"),
|
perParticipantE2EE: parser.getFlagParam("perParticipantE2EE"),
|
||||||
// TODO this should not default to true!
|
controlledOutput: parser.getFlagParam("controlledMediaDevices"),
|
||||||
controlledOutput: parser.getFlagParam("controlledMediaDevices", true),
|
|
||||||
skipLobby: parser.getFlagParam(
|
skipLobby: parser.getFlagParam(
|
||||||
"skipLobby",
|
"skipLobby",
|
||||||
isWidget && intent === UserIntent.StartNewCall,
|
isWidget && intent === UserIntent.StartNewCall,
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ import { useTrackProcessor } from "../livekit/TrackProcessorContext";
|
|||||||
import { DeveloperSettingsTab } from "./DeveloperSettingsTab";
|
import { DeveloperSettingsTab } from "./DeveloperSettingsTab";
|
||||||
import { FieldRow, InputField } from "../input/Input";
|
import { FieldRow, InputField } from "../input/Input";
|
||||||
import { useSubmitRageshake } from "./submit-rageshake";
|
import { useSubmitRageshake } from "./submit-rageshake";
|
||||||
|
import { useUrlParams } from "../UrlParams";
|
||||||
|
|
||||||
type SettingsTab =
|
type SettingsTab =
|
||||||
| "audio"
|
| "audio"
|
||||||
@@ -103,7 +104,10 @@ export const SettingsModal: FC<Props> = ({
|
|||||||
const [showDeveloperSettingsTab] = useSetting(developerMode);
|
const [showDeveloperSettingsTab] = useSetting(developerMode);
|
||||||
|
|
||||||
const { available: isRageshakeAvailable } = useSubmitRageshake();
|
const { available: isRageshakeAvailable } = useSubmitRageshake();
|
||||||
|
// If we are on ios we will show a button to open the native picker.
|
||||||
const iosDeviceMenu = useObservableEagerState(iosDeviceMenu$);
|
const iosDeviceMenu = useObservableEagerState(iosDeviceMenu$);
|
||||||
|
// In controlled devices we will not show the input section
|
||||||
|
const { controlledOutput } = useUrlParams();
|
||||||
|
|
||||||
const audioTab: Tab<SettingsTab> = {
|
const audioTab: Tab<SettingsTab> = {
|
||||||
key: "audio",
|
key: "audio",
|
||||||
@@ -111,7 +115,7 @@ export const SettingsModal: FC<Props> = ({
|
|||||||
content: (
|
content: (
|
||||||
<>
|
<>
|
||||||
<Form>
|
<Form>
|
||||||
{!iosDeviceMenu && (
|
{!controlledOutput && (
|
||||||
<DeviceSelection
|
<DeviceSelection
|
||||||
device={devices.audioInput}
|
device={devices.audioInput}
|
||||||
title={t("settings.devices.microphone")}
|
title={t("settings.devices.microphone")}
|
||||||
|
|||||||
Reference in New Issue
Block a user