_Call

_Call

new _Call(options)

The Call class.
Parameters:
Name Type Description
options Object 创建连接的初始化参数
Properties
Name Type Description
connection String WebIM.conn
mediaStreamConstaints Object 开启视频音频{ audio: true, video: true }
listener Object 注册监听
listener.onAcceptCall function 接受呼叫
listener.onRinging function 响铃
listener.onTermCall function 结束/拒绝通话
listener.onGotLocalStream function 获取本地媒体流
listener.onGotRemoteStream function 获取对方媒体流
listener.onOtherUserOpenVoice function 对方打开麦克风
listener.onOtherUserOpenVideo function 对方打开摄像头