远程教学之画板相关消息.md
1.46 KB
教学画板的问题
- 由于各个设备的尺寸不一,造成画面和文字显示在各个设备上显示方式并不一致。
- 目前的解决方案是,当老师端调出画板的时候,发送老师版的图像到客户端,保证画板图像的尺寸比例一致。
画板动作消息
-
打开画板
type:templateAction subtype:drawPanelAction command:openDrawPanel attachmentType:image
附加的附件是教师版当前页面的截图
-
关闭画板
type:templateAction subtype:drawPanelAction command:closeDrawPanel
-
更换画笔
type:templateAction subtype:drawPanelAction command:changeBrush
-
Undo操作
type:templateAction subtype:drawPanelAction command:undo
-
清空画面
type:templateAction subtype:drawPanelAction command:clear
绘画消息
-
开始绘画消息
type:templateAction subtype:drawPanelAction command:beginDraw startX:200 startY:100
-
绘画中的消息
type:templateAction subtype:drawPanelAction command:drawing attachment:smallFile
附件记录了绘画过程中的所有点的信息的数组。
-
绘画结束消息
type:templateAction subtype:drawPanelAction command:endDraw endX:50 endY:50
绘画点信息
"currentLocationX":100
"currentLocationY":100
"previousLocationX":50
"previousLocationY":50