[+] 协议

This commit is contained in:
acgist
2022-11-17 07:06:07 +08:00
parent d636d6b44a
commit e1d497f28e
79 changed files with 1650 additions and 387 deletions

View File

@@ -71,11 +71,12 @@
switch(data.header.pid) {
case protocol.pid.heartbeat:
// 心跳
break;
return true;
case protocol.pid.register:
// 录制
break;
// 注册
return true;
}
return false;
}
// 创建房间
function create() {
@@ -91,7 +92,7 @@
}
// 录制视频
function record(e) {
taoyao.push(protocol.buildProtocol(config.sn, protocol.pid.heartbeat), () => {
taoyao.push(protocol.buildProtocol(taoyaoConfig.sn, protocol.pid.heartbeat), () => {
classSwitch(e, 'active');
});
}