Clean up
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
eae3c1c496
commit
1dc1bc68db
1 changed files with 8 additions and 16 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue