保利威文档中心

帮助中心

连麦模块

更新时间:2024-10-10 17:27:10

连麦模块(connectMic) 是基于保利威 连麦SDK 实现的一个控制模块,用于实现观众与主播之间的连麦功能,如:申请连麦,打开设备调试等。

一、Api 方法概览

Api 方法 说明
getConnectMicInfo 获取连麦信息
getMicDatas 获取连麦列表
isConnectMicing 判断连麦状态是否处于连麦中
supportConnectMic 是否支持连麦功能
setupConnectMic 设置连麦
applyConnectMic 观众申请连麦
cancelApplyConnectMic 取消连麦申请
endConnectMic 结束连麦
startStream 开始推送本地流
enabledVideo 开启本地摄像头
disabledVideo 关闭本地摄像头
enabledAudio 开启本地麦克风
disabledAudio 关闭本地麦克风
switchCamera 切换前后置摄像头
pusherEventHandler <live-pusher> 事件回调
pusherNetStatusHandler <live-pusher> 事件回调
pusherErrorHandler <live-pusher> 事件回调
pusherBGMStartHandler <live-pusher> 事件回调
pusherBGMProgressHandler <live-pusher> 事件回调
pusherBGMCompleteHandler <live-pusher> 事件回调
pusherAudioVolumeNotify <live-pusher> 事件回调
playerEventHandler <live-player> 事件回调
playerFullscreenChange <live-player> 事件回调
playerNetStatus <live-player> 事件回调
playerAudioVolumeNotify <live-player> 事件回调

二、Event 事件概览

Event 事件 说明
ConnectMicEvents.ConnectMicInfoChange 连麦信息改变
ConnectMicEvents.OpenConnectMic 讲师开启连麦功能
ConnectMicEvents.CloseConnectMic 讲师关闭连麦功能
ConnectMicEvents.ConnectMicStatusChange 连麦状态更新
ConnectMicEvents.ConnectMicDataChange 连麦列表修改
ConnectMicEvents.TeacherHangUp 讲师挂断当前连麦者
ConnectMicEvents.ConnectMicOverLimit 连麦人数到达上限
ConnectMicEvents.CurrentSpeakerStatusChanged 当前主讲状态改变
ConnectMicEvents.AllowConnectMicApply 讲师同意连麦申请
ConnectMicEvents.RemoteAudioMuteChange 远端连麦用户麦克风开关改变
ConnectMicEvents.RemoteVideoMuteChange 远端连麦用户摄像头开关改变
ConnectMicEvents.LocalAudioMuteChange 本地麦克风开关改变
ConnectMicEvents.LocalVideoMuteChange 本地摄像头开关改变
ConnectMicEvents.LeaveConnectMicSuccess 离开连麦成功
联系客服,在线咨询