通过小鱼开发平台可实现全面的会议控制管理功能,对会议的控制管理操作将通过事件回调的方式通知终端,除了常用的踢人、静音、举手发言、字幕消息、签到、答题、投票等会控操作也将通过事件回调通知终端,终端收到会控消息后进行相应处理。
会控通过INemoSDKCallback.OnConfManagmentState回调接收会控消息
//返回会控状态
void OnConfManagmentState(SDKConfManagmentState state)
SDKConfManagmentState状态值
// 会议控制状态信息
public class SDKConfManagmentState
{
// mute operation is disabled by admin, you cannot mute/unmute audio
public bool muteOperationDisabled;
// content operation is disabled by admin, you cannot share content now.
public bool contentOperationDisabled;
//whiteboard operation is disabled by admin, you cannot share whiteboard now.
public bool whiteboardIsDisabled;
// Mute: you are muted by admin ,Unmute: you are unmuted by admin ,ForceMute: you are forcibly muted.
public SDKConfAudioMuteState audioMuteState = SDKConfAudioMuteState.UnKown;
public bool isChairmanMode;
public string chairmanUri;
}
// 会控音频禁音状态
public enum SDKConfAudioMuteState
{
Mute, //麦克风关闭
Unmute, //麦克风开启
ForceMute, //强制麦克风关闭
UnKown //异常状态
}
会控收到的字幕消息INemoSDKCallback.OnCaptionNotification;
public class SDKCaptionNotify
{
public string action; //操作消息动作,“push” 推送消息,“cancel”取消显示消息
public string content; // 消息内容
public string location; // 消息显示位置,top上方显示,middle中间显示,bottom底部显示
public int scroll; // 消息是否滚动,0 不滚动,1 滚动
}
会控收到的签到、答题、问卷、投票消息
//接收签到、答题、问卷、投票消息
void onAccessServerVoteSignature(SDKConfMgmtVoteSignature votesig);
//签到结果响应
void onSignResponse(SDKSignResponse rlt);
//公布投票、答题结果响应
void onAccessServerAnswerPublish(SDKConfMgmtAnswerPublish result);
//关闭结果展示响应
void onAccessServerCloseAnswerResult();
获取会控相关URL
//获取签到、投票、答题所需互动的URL
string GetVoteInteractUrl(string webViewUrl, string id,
SDKConfMgmtVoteSignature.VoteType voteType = SDKConfMgmtVoteSignature.VoteType.VoteType_Answer,
long time = 0L, string locale = "zh-CN");
// 获取会控Url(v3.3及以上)
string GetMeetingManagerUrl(string meetingNumber, bool isMeetingOwner = false, string local = "zh-CN");
// 获取会控Url(仅v2.29)
string GetMeetingHostUrl(string meetingNumber, bool isMeetingOwner = false, string local = "zh-CN")
使用网关时,SDK提供JS方法注入webview,才能访问会控相关H5页面(具体参考Sdkdemo)
/// <summary>
/// 使用网关时,获取H5页面需要调用的Javascript
/// </summary>
/// <returns></returns>
object GetJavascriptObject();