Switch to IPC channel for `getDesktopCapturerSources` (#21042)

pull/21066/head
Šimon Brandner 2022-02-11 11:38:35 +01:00 committed by GitHub
parent d4a019b27a
commit 42416021ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -550,6 +550,14 @@ export default class ElectronPlatform extends VectorBasePlatform {
return this.ipcCall('getSpellCheckLanguages');
}
async getDesktopCapturerSources(options: GetSourcesOptions): Promise<Array<DesktopCapturerSource>> {
return this.ipcCall('getDesktopCapturerSources', options);
}
supportsDesktopCapturer(): boolean {
return true;
}
async getAvailableSpellCheckLanguages(): Promise<string[]> {
return this.ipcCall('getAvailableSpellCheckLanguages');
}