sinch-rtc
Version:
RTC JavaScript/Web SDK
39 lines (38 loc) • 2.33 kB
TypeScript
import { CallClientListener } from "./listeners/CallClientListener";
import { CallClientInstance } from "./CallClientInstance";
import { CallInitiator } from "./CallInitiator";
import { RtcConfig, RtcProfile } from "../ocra/api";
import { OutboundCall } from "./OutboundCall";
import { CallReporter } from "./reporting/CallReporter";
import { NotificationResult } from "../push/NotificationResult";
import { CallClient } from "./CallClient";
import { Call } from "./Call";
import { PushService } from "../push/PushService";
import { FetchIceServers } from "../rtc/IceServer";
import { Features } from "../features/Features";
import { MediaManager } from "../rtc/MediaManager";
export declare class DefaultCallClient implements CallClient {
private userId;
private applicationKey;
private mediaManager;
private instance?;
private pendingEventListeners;
constructor(userId: string, applicationKey: string, mediaManager: MediaManager);
getCall(callId: string): Call | undefined;
init(callInitiator: CallInitiator, rtcProfile: RtcProfile, rtcConfiguration: RtcConfig, fetchIceServers: FetchIceServers, callReporter: CallReporter, pushSender: PushService, useRelayIceCandidatesOnly: boolean, features: Features, instanceId: string, callerIdentifier?: string): void;
private get callclient();
handleCallPushPayload(notificationResult: NotificationResult): void;
callUser(toUserId: string, headers?: Record<string, string>): Promise<OutboundCall>;
callUserVideo(toUserId: string, headers?: Record<string, string>): Promise<OutboundCall>;
callPhoneNumber(toUserId: string, headers?: Record<string, string>): Promise<OutboundCall>;
callSip(toUserId: string, headers?: Record<string, string>): Promise<OutboundCall>;
callConference(toUserId: string, headers?: Record<string, string>): Promise<OutboundCall>;
addListener(listener: CallClientListener): void;
removeListener(listener: CallClientListener): void;
setAudioTrackConstraints(constraints: MediaTrackConstraints | null): void;
setVideoTrackConstraints(constraints: MediaTrackConstraints | null): void;
getInstance(): CallClientInstance | undefined;
}
export declare class CallClientFactory {
static create(userId: string, applicationKey: string, mediaManager: MediaManager): DefaultCallClient;
}