LivePusherContext
与页面内唯一的 live-pusher 组件绑定,操作对应的 组件。
开始推流,同时开启摄像头预览
LivePusherContext.stop()
停止推流,同时停止摄像头预览
LivePusherContext.pause()
暂停推流
LivePusherContext.resume()
切换前后摄像头
LivePusherContext.snapshot()
快照
LivePusherContext.toggleTorch()
切换手电筒
LivePusherContext.playBGM(Object object)
播放背景音
LivePusherContext.pauseBGM()
暂停背景音
LivePusherContext.resumeBGM()
恢复背景音
LivePusherContext.setBGMVolume(Object object)
设置背景音音量
开启摄像头预览