call
call is an object of class callObject that is automatically created by wrtc whenever it starts or receives a new call.
Users can use the call object's properties and functions to control the call.
To get all call objects you can use wrtc.getCalls()
call API
The call object can be controlled using function calls and properties.
Properties
| call.capabilities | capabilities of client at other end of call |
| call.line | line object used by call |
| call.nam | call object name |
| call.objType | object type |
| call.remoteVideo | HTML <video> object to display received video image |
| call.stat | enum used by call.state |
| call.state | call progress state |
| call.wrtc | wrtc object call belongs to |
adv
| call.adv.callGroup | make call become part of group call |
| call.adv.multiUser | multiple users at other end of call |
| call.adv.stats_ms | statistics (Chrome only) |
| call.adv.timeout | call timeout |
Functions
| call.answerCall() | answer incoming call |
| call.denyCall() | deny incoming call |
| call.direction() | incoming/outgoing call |
| call.get() | get read-only parameter |
| call.getCallState() | call progress state |
| call.getPartner() | address of other end of call |
| call.getPartnerDisplayName() | display name of other end of call |
| call.hangup() | finish ongoing call |
| call.hasVideo() | are we receiving video |
| call.is() | check boolean states |
| call.muteAudio() | do not send your audio to other end of call |
| call.putOnHold() | put call on hold |
| call.recall() | request other end to call us again |
| call.reconnect() | hang up and call again |
| call.retrieveFromHold() | retrieve call from hold |
| call.sendDTMF() | send DTMF tones |
| call.sendSIPRawInfo() | send SIP INFO message |
| call.setSendVideo() | start/stop transmitting video |
| call.setVideoSize() | set size of remote video window |
| call.transfer() | blind transfer call |
adv
| call.adv.addDataChannel() | add a data channel to a call |
| call.adv.getLog() | request log from other end of call |
| call.adv.mutePartner() | mute mic/cam at other end of call |
| call.adv.muteSpeaker() | mute audio of call in your speaker |
| call.adv.requestVideoEncoding() | request max bit-, framerate and scaling of received video |
| call.adv.sendData() | create a data channel if needed and send data through it |
| call.adv.setAudioDevice() | set local audio destination (speaker) |
| call.adv.setVideoEncoding() | set max bit-, framerate and scaling of transmitted video |
| call.adv.sendWrtcCmd() | send user command to other end of call |