sinch-rtc
    Preparing search index...

    Interface Call

    interface Call {
        details: CallDetails;
        direction: Direction;
        headers: undefined | Record<string, string>;
        id: string;
        incomingStream: undefined | MediaStream;
        outgoingStream: undefined | MediaStream;
        remoteUserDisplayName?: string;
        remoteUserId: string;
        state: CallState;
        addListener(listener: CallListener): void;
        answer(): void;
        hangup(): void;
        mute(): void;
        pauseVideo(): void;
        removeListener(listener: CallListener): void;
        resumeVideo(): void;
        sendDtmf(keys: string): void;
        unmute(): void;
    }
    Index

    Properties

    details: CallDetails

    Returns metadata about the call.

    a CallDetails containing metadata about the call.

    direction: Direction

    Returns the Direction of the call.

    the direction of the call.

    headers: undefined | Record<string, string>

    Returns the headers.

    IMPORTANT: Headers may not be immediately available due to push payload size limitations. If it's not immediately available, it will be available after the onCallProgressing or onCallEstablished callbacks for CallListener are called.

    the headers.

    id: string

    Returns the call identifier.

    the call identifier.

    incomingStream: undefined | MediaStream

    Returns the local MediaStream of the call.

    the local MediaStream of the call.

    outgoingStream: undefined | MediaStream

    Returns the remote MediaStream of the call.

    the remote MediaStream of the call.

    remoteUserDisplayName?: string

    Returns the callers displayName.

    the callers displayName.

    remoteUserId: string

    Returns the identifier of the remote participant in the call.

    the identifier of the remote participant in the call.

    state: CallState

    Returns the CallState the call is currently in.

    the state the call is currently in.

    Methods

    • Answers an incoming call.

      Returns void

      InvalidOperationError If the call is not incoming

    • Ends the call, regardless of what state it is in. If the call is an incoming call that has not yet been answered, the call will be reported as denied to the caller.

      Returns void

    • Mute audio.

      Returns void

    • Pause the video capturing.

      Returns void

    • Resume the video capturing.

      Returns void

    • Sends one or more DTMF tones for tone dialing. (Only applicable for calls terminated to PSTN (Publicly Switched Telephone Network)).

      Parameters

      • keys: string

        May be a series of DTMF keys. Each key must be in [0-9, #, *, A-D].

      Returns void

      IllegalArgumentException if any of the given DTMF keys is invalid

    • Unmute audio.

      Returns void