You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
@@ -482,22 +482,14 @@ export default class CallHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
const selectDesktopCapturerSource = async (
|
||||
sources: Array<ElectronDesktopCapturerSource>,
|
||||
): Promise<ElectronDesktopCapturerSource> => {
|
||||
console.log(DesktopCapturerSourcePicker);
|
||||
const params = {
|
||||
sources: sources,
|
||||
};
|
||||
|
||||
const {finished} = Modal.createDialog(DesktopCapturerSourcePicker, params);
|
||||
|
||||
call.placeScreenSharingCall(
|
||||
remoteElement,
|
||||
localElement,
|
||||
async (sources: Array<ElectronDesktopCapturerSource>) : Promise<ElectronDesktopCapturerSource> => {
|
||||
const {finished} = Modal.createDialog(DesktopCapturerSourcePicker, {sources});
|
||||
const [source] = await finished;
|
||||
console.log("Dialog closed with", source);
|
||||
return source;
|
||||
};
|
||||
|
||||
call.placeScreenSharingCall(remoteElement, localElement, selectDesktopCapturerSource);
|
||||
});
|
||||
} else {
|
||||
console.error("Unknown conf call type: %s", type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user