UNPKG

infobip-rtc

Version:

Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation

21 lines (20 loc) 1.04 kB
import { AbstractCapturer } from "./AbstractCapturer"; import { ServerCapturer } from "../ServerCapturer"; import { FileResponse } from "../FileResponse"; import VideoType from "../../util/VideoType"; import { Logger } from "../../log/Logger"; export declare class DefaultServerCapturer extends AbstractCapturer implements ServerCapturer { private readonly token; private readonly apiUrl; private readonly logger; private static TIMEOUT; private static FILE_STORAGE_NOT_ENABLED_ERROR; private static GENERIC_FILE_UPLOAD_ERROR; private httpClient; constructor(localCameraStream: () => MediaStream, localScreenShareStream: () => MediaStream, remotePeerConnection: () => RTCPeerConnection, mid: (identity: string, type: VideoType) => string, currentUserIdentity: string, token: string, apiUrl: string, logger: Logger); takeScreenshot(identity: string, videoType: VideoType): Promise<FileResponse>; private initializeHttpClient; private uploadImage; private toFile; private getErrorMessage; }