Home > borogove > Client > addCallMediaListener

Client.addCallMediaListener() method

Event fired when a call is asking for media to send

Signature:

addCallMediaListener(handler: (arg0: borogove.calls.InitiatedSession, arg1: boolean, arg2: boolean) => void): number;

Parameters

Parameter Type Description
handler (arg0: borogove.calls.InitiatedSession, arg1: boolean, arg2: boolean) => void takes three arguments, the call Session, a boolean indicating if audio is desired, and a boolean indicating if video is desired

Returns:

number

token for use with removeEventListener