echo

Updated 远程教学之流程消息 (markdown)

@@ -49,27 +49,24 @@ @@ -49,27 +49,24 @@
49 ``` 49 ```
50 { 50 {
51 "type":"flow", 51 "type":"flow",
52 - "command":"reportId", 52 + "command":"reportMetadata",
53 - "id":"17293" 53 + "userId":"17293"
  54 + "device":"android"
  55 + "appVersion":"4.0.0"
54 } 56 }
55 ``` 57 ```
56 58
57 -* 下发课程资源信息与教师端元数据(教师端动作,具体的消息定义还需要讨论) 59 +* 下发课程资源信息与教师端元数据
58 - * 学生端根据老师端的版本信息,判断自己的版本是否和老师的版本相匹配,如果不匹配则提示更新 60 + *教师端收到信息后,判断学生端的版本是否与自己的版本相匹配
59 - * 如果匹配则进入下载资源的流程 61 + 判断方法待定。
60 62
61 ``` 63 ```
62 { 64 {
63 "type":"flow", 65 "type":"flow",
64 "command":"prepareCourse", 66 "command":"prepareCourse",
65 - "screenWidth":1024, 67 + "screenWidth":1024, // For 教学画板
66 - "screenHeight":768, 68 + "screenHeight":768, // For 教学画板
67 - "device":"ios" 69 + "courseName":"英雄是怎样炼成的" // 学生端可以展现在等待上课画面
68 - "appVersion":"6.6.0"  
69 - "courseName":"英雄是怎样炼成的"  
70 - "templateList":{"subTypeList":[0,2,3,6],  
71 - "typeStringList":["group_test_item_video",  
72 - "content_scene_video"]  
73 "attachmentType":"smallFile" 70 "attachmentType":"smallFile"
74 } 71 }
75 ``` 72 ```
@@ -95,6 +92,14 @@ fc5545a9a728904dc533efcbfff1d2c5, @@ -95,6 +92,14 @@ fc5545a9a728904dc533efcbfff1d2c5,
95 } 92 }
96 ``` 93 ```
97 94
  95 +* 学生端下载失败的处理
  96 +```
  97 +{
  98 + "type":"flow",
  99 + "command":"downloadCourseResourcesFailed"
  100 +}
  101 +```
  102 +
98 * 学生端已经下载好课程所需要的资源(学生端动作) 103 * 学生端已经下载好课程所需要的资源(学生端动作)
99 检测到本地已经下载好了全部的课程所需资源后,通知给教师端。 104 检测到本地已经下载好了全部的课程所需资源后,通知给教师端。
100 ``` 105 ```
@@ -118,9 +123,9 @@ fc5545a9a728904dc533efcbfff1d2c5, @@ -118,9 +123,9 @@ fc5545a9a728904dc533efcbfff1d2c5,
118 123
119 ``` 124 ```
120 { 125 {
121 - "pageInfo" : 页面Json信息 126 + "pageInfo" : 页面Json信息(去掉原来Json中的pageIndex)
122 "swipeDirection" : 0 0-左滑 1-右滑) 127 "swipeDirection" : 0 0-左滑 1-右滑)
123 - "coursePageType" : 0 这个值主要是为了兼容本地双屏功能用的,这里固定填写0就可以了 128 + "coursePageType" : 0 0-普通学习页,3-关键词页
124 } 129 }
125 ``` 130 ```
126 131
@@ -139,4 +144,4 @@ fc5545a9a728904dc533efcbfff1d2c5, @@ -139,4 +144,4 @@ fc5545a9a728904dc533efcbfff1d2c5,
139 "command":"endCourse" 144 "command":"endCourse"
140 } 145 }
141 ``` 146 ```
142 -教师端收到此信息后解散群 147 +教师端收到此信息后上报给盒子鱼服务器。