自习室优化ok
This commit is contained in:
@@ -80,6 +80,12 @@ enum RoomEvent {
|
||||
///老师关闭学生的麦克风
|
||||
closeStudentMic("sys_control_mute_microphone"),
|
||||
|
||||
///老师打开学生的麦克风
|
||||
openStudentMic("sys_control_unmute_microphone"),
|
||||
|
||||
///老师开启学生的摄像头
|
||||
openStudentCamera("sys_control_unmute_camera"),
|
||||
|
||||
///老师关闭学生的摄像头
|
||||
closeStudentCamera("sys_control_mute_camera"),
|
||||
|
||||
|
||||
@@ -66,7 +66,10 @@ class RoomWebSocket {
|
||||
print("未识别的 action: ${jsonMap['action']},消息已忽略");
|
||||
return; // 直接跳过
|
||||
} else {
|
||||
logger.i("接收到事件: ${event.value}");
|
||||
logger.i("""
|
||||
接收到事件: ${event.value}
|
||||
数据: ${jsonMap['data']}
|
||||
""");
|
||||
}
|
||||
final msg = RoomMessage(event, jsonMap['data']);
|
||||
_msgController.add(msg);
|
||||
@@ -96,7 +99,7 @@ class RoomWebSocket {
|
||||
"action": action.value,
|
||||
if (params != null) ...params,
|
||||
};
|
||||
if(action != RoomCommand.ping){
|
||||
if (action != RoomCommand.ping) {
|
||||
logger.i("发送指令:$msg");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user