mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
@@ -128,7 +128,7 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
if (!skipLobby) return;
|
if (!skipLobby) return;
|
||||||
|
|
||||||
const defaultDeviceSetup = async (
|
const defaultDeviceSetup = async (
|
||||||
requestedDeviceData: JoinCallData
|
requestedDeviceData: JoinCallData,
|
||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
// XXX: I think this is broken currently - LiveKit *won't* request
|
// XXX: I think this is broken currently - LiveKit *won't* request
|
||||||
// permissions and give you device names unless you specify a kind, but
|
// permissions and give you device names unless you specify a kind, but
|
||||||
@@ -142,14 +142,14 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
const deviceId = await findDeviceByName(
|
const deviceId = await findDeviceByName(
|
||||||
audioInput,
|
audioInput,
|
||||||
"audioinput",
|
"audioinput",
|
||||||
devices
|
devices,
|
||||||
);
|
);
|
||||||
if (!deviceId) {
|
if (!deviceId) {
|
||||||
logger.warn("Unknown audio input: " + audioInput);
|
logger.warn("Unknown audio input: " + audioInput);
|
||||||
latestMuteStates.current!.audio.setEnabled?.(false);
|
latestMuteStates.current!.audio.setEnabled?.(false);
|
||||||
} else {
|
} else {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`Found audio input ID ${deviceId} for name ${audioInput}`
|
`Found audio input ID ${deviceId} for name ${audioInput}`,
|
||||||
);
|
);
|
||||||
latestDevices.current!.audioInput.select(deviceId);
|
latestDevices.current!.audioInput.select(deviceId);
|
||||||
latestMuteStates.current!.audio.setEnabled?.(true);
|
latestMuteStates.current!.audio.setEnabled?.(true);
|
||||||
@@ -162,14 +162,14 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
const deviceId = await findDeviceByName(
|
const deviceId = await findDeviceByName(
|
||||||
videoInput,
|
videoInput,
|
||||||
"videoinput",
|
"videoinput",
|
||||||
devices
|
devices,
|
||||||
);
|
);
|
||||||
if (!deviceId) {
|
if (!deviceId) {
|
||||||
logger.warn("Unknown video input: " + videoInput);
|
logger.warn("Unknown video input: " + videoInput);
|
||||||
latestMuteStates.current!.video.setEnabled?.(false);
|
latestMuteStates.current!.video.setEnabled?.(false);
|
||||||
} else {
|
} else {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`Found video input ID ${deviceId} for name ${videoInput}`
|
`Found video input ID ${deviceId} for name ${videoInput}`,
|
||||||
);
|
);
|
||||||
latestDevices.current!.videoInput.select(deviceId);
|
latestDevices.current!.videoInput.select(deviceId);
|
||||||
latestMuteStates.current!.video.setEnabled?.(true);
|
latestMuteStates.current!.video.setEnabled?.(true);
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export const RoomPage: FC = () => {
|
|||||||
hideHeader={hideHeader}
|
hideHeader={hideHeader}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
[client, passwordlessUser, confineToRoom, preload, hideHeader, skipLobby]
|
[client, passwordlessUser, confineToRoom, preload, hideHeader, skipLobby],
|
||||||
);
|
);
|
||||||
|
|
||||||
let content: ReactNode;
|
let content: ReactNode;
|
||||||
|
|||||||
Reference in New Issue
Block a user