TeaSpeak-Client/imports/shared-app/ui/modal/video-source/Controller.d.ts
2021-02-20 18:55:36 +01:00

25 lines
797 B
TypeScript

import { VideoSource } from "tc-shared/video/VideoSource";
import { VideoBroadcastConfig, VideoBroadcastType } from "tc-shared/connection/VideoConnection";
export declare type VideoSourceModalAction = {
mode: "select-quick";
defaultDevice?: string;
} | {
mode: "select-default";
defaultDevice?: string;
} | {
mode: "new";
} | {
mode: "edit";
source: VideoSource;
broadcastConstraints: VideoBroadcastConfig;
};
export declare type VideoSourceSelectResult = {
source: VideoSource | undefined;
config: VideoBroadcastConfig | undefined;
};
/**
* @param type The video type which should be prompted
* @param mode
*/
export declare function spawnVideoSourceSelectModal(type: VideoBroadcastType, mode: VideoSourceModalAction): Promise<VideoSourceSelectResult>;