DataChannelCallFeature interface

DataChannel 调用功能

扩展

继承属性

name

功能名称。

方法

createDataChannelSender(DataChannelSenderOpenOptions)

创建 DataChannel 发送方对象

off("dataChannelReceiverCreated", DataChannelReceiverCreatedEvent)
on("dataChannelReceiverCreated", DataChannelReceiverCreatedEvent)

继承的方法

dispose()

继承属性详细信息

name

功能名称。

name: string

属性值

string

继承自CallFeature.name

方法详细信息

createDataChannelSender(DataChannelSenderOpenOptions)

创建 DataChannel 发送方对象

function createDataChannelSender(options: DataChannelSenderOpenOptions): DataChannelSender

参数

options
DataChannelSenderOpenOptions

发送方选项

返回

off("dataChannelReceiverCreated", DataChannelReceiverCreatedEvent)

function off(event: "dataChannelReceiverCreated", listener: DataChannelReceiverCreatedEvent)

参数

event

"dataChannelReceiverCreated"

on("dataChannelReceiverCreated", DataChannelReceiverCreatedEvent)

function on(event: "dataChannelReceiverCreated", listener: DataChannelReceiverCreatedEvent)

参数

event

"dataChannelReceiverCreated"

继承的方法详细信息

dispose()

function dispose()

继承自CallFeature.dispose