Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2020-12-26 08:40:58 +01:00
parent eae3c1c496
commit 1dc1bc68db
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -482,22 +482,14 @@ export default class CallHandler {
return; return;
} }
const selectDesktopCapturerSource = async ( call.placeScreenSharingCall(
sources: Array<ElectronDesktopCapturerSource>, remoteElement,
): Promise<ElectronDesktopCapturerSource> => { localElement,
console.log(DesktopCapturerSourcePicker); async (sources: Array<ElectronDesktopCapturerSource>) : Promise<ElectronDesktopCapturerSource> => {
const params = { const {finished} = Modal.createDialog(DesktopCapturerSourcePicker, {sources});
sources: sources, const [source] = await finished;
}; return source;
});
const {finished} = Modal.createDialog(DesktopCapturerSourcePicker, params);
const [source] = await finished;
console.log("Dialog closed with", source);
return source;
};
call.placeScreenSharingCall(remoteElement, localElement, selectDesktopCapturerSource);
} else { } else {
console.error("Unknown conf call type: %s", type); console.error("Unknown conf call type: %s", type);
} }