infobip-rtc
Version:
Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation
25 lines (24 loc) • 1.31 kB
TypeScript
/// <reference types="node" />
import { InfobipGateway } from "../../gateway/InfobipGateway";
import { EventEmitter } from "events";
import { Logger } from "../../log/Logger";
import { Device } from "../../device/Device";
import { DefaultApplicationCall } from "./DefaultApplicationCall";
import { IncomingApplicationCall } from "../IncomingApplicationCall";
import { DeclineOptions } from "../options/DeclineOptions";
import { ApplicationCallOptions } from "../options/ApplicationCallOptions";
export declare class DefaultIncomingApplicationCall extends DefaultApplicationCall implements IncomingApplicationCall {
private caller;
private remoteOffer;
constructor(eventEmitter: EventEmitter, gateway: InfobipGateway, logger: Logger, rtcConfig: any, device: Device, caller: any, callsConfigurationId: string, remoteOffer: RTCSessionDescriptionInit, currentUserIdentity: string, token: string, apiUrl: string, callId: string);
from(): string;
fromDisplayName(): string;
accept(options?: ApplicationCallOptions): void;
protected negotiateAudio(options?: ApplicationCallOptions): Promise<void>;
decline(options?: DeclineOptions): void;
private setRemoteDescription;
private addTracks;
private sendAnswer;
private handleIncomingCallFlowError;
private declineCall;
}