Remove Element-specifc screen-sharing code out of the js-sdk

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-09-01 18:17:52 +02:00
parent 4777da4da7
commit 7ae9f3d1ae
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D
2 changed files with 29 additions and 1 deletions

View file

@ -49,6 +49,7 @@ import PerformanceMonitor from "../performance";
import UIStore from "../stores/UIStore";
import { SetupEncryptionStore } from "../stores/SetupEncryptionStore";
import { RoomScrollStateStore } from "../stores/RoomScrollStateStore";
import { DesktopCapturerSource } from "matrix-js-sdk/src/webrtc/call";
/* eslint-disable @typescript-eslint/naming-convention */
@ -93,6 +94,20 @@ declare global {
mxSetupEncryptionStore?: SetupEncryptionStore;
mxRoomScrollStateStore?: RoomScrollStateStore;
mxOnRecaptchaLoaded?: () => void;
electron?: Electron;
}
interface GetSourcesOptions {
types: Array<string>;
thumbnailSize?: {
height: number;
width: number;
};
fetchWindowIcons?: boolean;
}
interface Electron {
getDesktopCapturerSources(options: GetSourcesOptions): Promise<Array<DesktopCapturerSource>>;
}
interface Document {