IncomingCall

new IncomingCall()

呼入的通话

Extends

Members

from :string

呼叫者 id

readonly state :string

当前通话状态 (calling, connected, closed, refused, canceled
Inherited From:

Methods

accept(stream) → {Promise}

接受该呼入通话
Parameters:
Name Type Description
stream MediaStream 本地流媒体,参见 MediaStream
Returns:
Promise

close() → {Promise}

结束通话
Returns:
Promise
Inherited From:

refuse() → {Promise}

拒绝该呼入通话
Returns:
Promise

Events

cancel

呼叫被对方取消

close

通话结束,可能是对方挂断或网络中断
Inherited From:

connect

通话连接成功
Parameters:
Name Type Description
stram MediaStream 对方的媒体流
Inherited From: