OutgoingCall

new OutgoingCall()

呼出的通话

Extends

Members

readonly state :string

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

to :string

呼叫目标 id

Methods

cancel() → {Promise}

取消该次呼叫
Returns:
Promise

close() → {Promise}

结束通话,如果在 calling 状态,则取消该次呼叫
Returns:
Promise
Overrides:

Events

close

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

connect

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

refuse

呼叫被对方拒绝