sun-pc 5713f3ddb7 update 6 months ago
..
api 0d866ee417 fix 6 months ago
bus 45db6f3caa init 6 months ago
client 5713f3ddb7 update 6 months ago
conf 5713f3ddb7 update 6 months ago
db 45db6f3caa init 6 months ago
log 45db6f3caa init 6 months ago
Dockerfile 45db6f3caa init 6 months ago
app.yaml 0d866ee417 fix 6 months ago
build.sh 45db6f3caa init 6 months ago
go.mod 45db6f3caa init 6 months ago
go.sum 45db6f3caa init 6 months ago
main.go 0d866ee417 fix 6 months ago
native-render.exe d6a2935084 update 6 months ago
readme.md d6a2935084 update 6 months ago
zinx.log 5713f3ddb7 update 6 months ago

readme.md

work device

职责

  1. 注册work device
  2. 启动native render
  3. 关闭时删除work device 并通知其中的native device
  4. 每个过程room state状态的变化

work device 注册逻辑

  • work device 启动时初始化数据,msgId,data传入服务端,此时没有房间信息不作房间相关逻辑
  • 将work device数据存入workmgr devices中
  • 设置属性和deviceId用于关闭连接时逻辑的处理

work device 启动native render

  • 其他客户端给服务端发送启动nr的信息
  • 服务端给对应wd转发启动nr的信息
  • wd端(当前)接收服务端转发的消息
  • 根据接收的数据下载文件启动nr
  • nr端启动,注册自己到work device mgr中

work device 关闭逻辑

  • 关闭时根据Property("type")删除work device
  • 给对应native render连接发送device 关闭消息
  • 更新native render绑定的房间状态未等到关闭