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