videomail-client
Version:
A wicked npm package to record videos directly in the browser, wohooo!
34 lines (33 loc) • 1.2 kB
TypeScript
import { PartialVideomailClientOptions } from "./types/options";
import { Videomail } from "./types/Videomail";
import Despot from "./util/Despot";
export interface StartOverParams {
keepHidden?: boolean | undefined;
}
export interface ShowParams {
goBack?: boolean | undefined;
playerOnly?: boolean | undefined;
}
declare class VideomailClient extends Despot {
private readonly container;
static readonly ENC_TYPE_APP_JSON: string;
static readonly ENC_TYPE_FORM: string;
constructor(options?: PartialVideomailClientOptions);
private validateOptions;
build(): HTMLElement | null | undefined;
show(params?: ShowParams): HTMLElement;
startOver(params?: StartOverParams): void;
setLimitSeconds(limitSeconds: number): void;
unload(startingOver?: boolean): void;
replay(videomail: Videomail, replayParentElementId?: string): HTMLVideoElement;
hide(): void;
getByAlias(alias: string): Promise<Videomail>;
getByKey(key: string): Promise<Videomail>;
isDirty(): boolean;
isBuilt(): boolean;
isRecording(): boolean;
submit(): void;
record(): void;
getLogLines(): string[] | undefined;
}
export { VideomailClient };