mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 01:35:49 +03:00
Connect to Jitsi unmuted by default (#8909)
This commit is contained in:
parent
a9a97d1be3
commit
ff4e66517b
1 changed files with 7 additions and 3 deletions
|
@ -109,7 +109,11 @@ export default class VideoChannelStore extends AsyncStoreWithClient<null> {
|
||||||
SettingsStore.setValue("videoInputMuted", null, SettingLevel.DEVICE, value);
|
SettingsStore.setValue("videoInputMuted", null, SettingLevel.DEVICE, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public connect = async (roomId: string, audioDevice: MediaDeviceInfo, videoDevice: MediaDeviceInfo) => {
|
public connect = async (
|
||||||
|
roomId: string,
|
||||||
|
audioDevice: MediaDeviceInfo | null,
|
||||||
|
videoDevice: MediaDeviceInfo | null,
|
||||||
|
) => {
|
||||||
if (this.activeChannel) await this.disconnect();
|
if (this.activeChannel) await this.disconnect();
|
||||||
|
|
||||||
const jitsi = getVideoChannel(roomId);
|
const jitsi = getVideoChannel(roomId);
|
||||||
|
@ -202,8 +206,8 @@ export default class VideoChannelStore extends AsyncStoreWithClient<null> {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
messaging.transport.send(ElementWidgetActions.JoinCall, {
|
messaging.transport.send(ElementWidgetActions.JoinCall, {
|
||||||
audioDevice: audioDevice?.label,
|
audioDevice: audioDevice?.label ?? null,
|
||||||
videoDevice: videoDevice?.label,
|
videoDevice: videoDevice?.label ?? null,
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
await Promise.race([waitForJoin, dontStopMessaging]);
|
await Promise.race([waitForJoin, dontStopMessaging]);
|
||||||
|
|
Loading…
Reference in a new issue