From 953ddd82e48dd206cef5ac94456549aed13b3ad5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:29 +0100 Subject: Updated 30 files and deleted 2976 files (automated) --- .../matrix-js-sdk/lib/webrtc/mediaHandler.d.ts | 86 ---------------------- 1 file changed, 86 deletions(-) delete mode 100644 includes/external/matrix/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.d.ts (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.d.ts') diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.d.ts b/includes/external/matrix/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.d.ts deleted file mode 100644 index 8841691..0000000 --- a/includes/external/matrix/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { TypedEventEmitter } from "../models/typed-event-emitter"; -import { MatrixClient } from "../client"; -export declare enum MediaHandlerEvent { - LocalStreamsChanged = "local_streams_changed" -} -export type MediaHandlerEventHandlerMap = { - [MediaHandlerEvent.LocalStreamsChanged]: () => void; -}; -export interface IScreensharingOpts { - desktopCapturerSourceId?: string; - audio?: boolean; - throwOnFail?: boolean; -} -export interface AudioSettings { - autoGainControl: boolean; - echoCancellation: boolean; - noiseSuppression: boolean; -} -export declare class MediaHandler extends TypedEventEmitter { - private client; - private audioInput?; - private audioSettings?; - private videoInput?; - private localUserMediaStream?; - userMediaStreams: MediaStream[]; - screensharingStreams: MediaStream[]; - private getMediaStreamPromise?; - constructor(client: MatrixClient); - restoreMediaSettings(audioInput: string, videoInput: string): void; - /** - * Set an audio input device to use for MatrixCalls - * @param deviceId - the identifier for the device - * undefined treated as unset - */ - setAudioInput(deviceId: string): Promise; - /** - * Set audio settings for MatrixCalls - * @param opts - audio options to set - */ - setAudioSettings(opts: AudioSettings): Promise; - /** - * Set a video input device to use for MatrixCalls - * @param deviceId - the identifier for the device - * undefined treated as unset - */ - setVideoInput(deviceId: string): Promise; - /** - * Set media input devices to use for MatrixCalls - * @param audioInput - the identifier for the audio device - * @param videoInput - the identifier for the video device - * undefined treated as unset - */ - setMediaInputs(audioInput: string, videoInput: string): Promise; - updateLocalUsermediaStreams(): Promise; - hasAudioDevice(): Promise; - hasVideoDevice(): Promise; - /** - * @param audio - should have an audio track - * @param video - should have a video track - * @param reusable - is allowed to be reused by the MediaHandler - * @returns based on passed parameters - */ - getUserMediaStream(audio: boolean, video: boolean, reusable?: boolean): Promise; - private getUserMediaStreamInternal; - /** - * Stops all tracks on the provided usermedia stream - */ - stopUserMediaStream(mediaStream: MediaStream): void; - /** - * @param desktopCapturerSourceId - sourceId for Electron DesktopCapturer - * @param reusable - is allowed to be reused by the MediaHandler - * @returns based on passed parameters - */ - getScreensharingStream(opts?: IScreensharingOpts, reusable?: boolean): Promise; - /** - * Stops all tracks on the provided screensharing stream - */ - stopScreensharingStream(mediaStream: MediaStream): void; - /** - * Stops all local media tracks - */ - stopAllStreams(): void; - private getUserMediaContraints; - private getScreenshareContraints; -} -//# sourceMappingURL=mediaHandler.d.ts.map \ No newline at end of file -- cgit