BRTC 是 BRTC Web SDK 中所有可调用方法的入口。BRTC 方法可用于创建客户端 Client 和音视频流 Stream 对象。BRTC 方法还可以检测浏览器的兼容性,是否支持屏幕分享。
checkSystemSupport判断浏览器是否支持 BRTC
BRTC.checkSystemSupport(): Promise‹boolean›
返回
createClient创建 Client 实例
BRTC.createClient(options:ClientOptions):Client
参数
createStream创建本地流实例
BRTC.createStream(options: StreamDeviceOption):LocalStream
enumAudioInputDevices枚举音频输入设备
BRTC.enumAudioInputDevices(): Promise<Device[]>
enumAudioOutputDevices枚举音频输出设备
BRTC.enumAudioOutputDevices(): Promise<Device[]>
enumVideoDevices枚举视频输入设备
BRTC.enumVideoDevices(): Promise<Device[]>
supportScreenSharing判断是否支持屏幕分享
BRTC.supportScreenSharing(): boolean
Web
BRTC 是 BRTC Web SDK 中所有可调用方法的入口。
BRTC 方法可用于创建客户端 Client 和音视频流 Stream 对象。BRTC 方法还可以检测浏览器的兼容性,是否支持屏幕分享。
Index
Function
checkSystemSupport
判断浏览器是否支持 BRTC
返回
createClient
创建 Client 实例
参数
返回
createStream
创建本地流实例
参数
返回
enumAudioInputDevices
枚举音频输入设备
返回
enumAudioOutputDevices
枚举音频输出设备
返回
enumVideoDevices
枚举视频输入设备
返回
supportScreenSharing
判断是否支持屏幕分享
返回