Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuming
/
developer-docs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
echo
2016-04-19 15:54:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
94cd0afcc1f8795512329ecb26c7bea08d7546d7
94cd0afc
1 parent
11424dba
Updated 远程教学之流程消息 (markdown)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
远程教学之流程消息.md
远程教学之流程消息.md
View file @
94cd0af
...
...
@@ -49,27 +49,24 @@
```
{
"type"
:
"flow"
,
"command"
:
"reportId"
,
"id"
:
"17293"
"command"
:
"reportMetadata"
,
"userId"
:
"17293"
"device"
:
"android"
"appVersion"
:
"4.0.0"
}
```
*
下发课程资源信息与教师端元数据
(教师端动作,具体的消息定义还需要讨论)
*
学生端根据老师端的版本信息,判断自己的版本是否和老师的版本相匹配,如果不匹配则提示更新
。
*
如果匹配则进入下载资源的流程
*
下发课程资源信息与教师端元数据
*
教师端收到信息后,判断学生端的版本是否与自己的版本相匹配
。
判断方法待定。
```
{
"type"
:
"flow"
,
"command"
:
"prepareCourse"
,
"screenWidth"
:
1024
,
"screenHeight"
:
768
,
"device"
:
"ios"
"appVersion"
:
"6.6.0"
"courseName"
:
"英雄是怎样炼成的"
"templateList"
:
{
"subTypeList"
:[
0
,
2
,
3
,
6
],
"typeStringList"
:[
"group_test_item_video"
,
"content_scene_video"
]
"screenWidth"
:
1024
,
//
For
教学画板
"screenHeight"
:
768
,
//
For
教学画板
"courseName"
:
"英雄是怎样炼成的"
//
学生端可以展现在等待上课画面
"attachmentType"
:
"smallFile"
}
```
...
...
@@ -95,6 +92,14 @@ fc5545a9a728904dc533efcbfff1d2c5,
}
```
*
学生端下载失败的处理
```
{
"type"
:
"flow"
,
"command"
:
"downloadCourseResourcesFailed"
}
```
*
学生端已经下载好课程所需要的资源(学生端动作)
检测到本地已经下载好了全部的课程所需资源后,通知给教师端。
```
...
...
@@ -118,9 +123,9 @@ fc5545a9a728904dc533efcbfff1d2c5,
```
{
"pageInfo"
:
页面Json信息
"pageInfo"
:
页面Json信息
(去掉原来Json中的pageIndex)
"swipeDirection"
:
0
(
0
-左滑
1
-右滑)
"coursePageType"
:
0
(
这个值主要是为了兼容本地双屏功能用的,这里固定填写
0
就可以了
)
"coursePageType"
:
0
(
0
-普通学习页,
3
-关键词页
)
}
```
...
...
@@ -139,4 +144,4 @@ fc5545a9a728904dc533efcbfff1d2c5,
"command"
:
"endCourse"
}
```
教师端收到此信息后解散群
\ No newline at end of file
教师端收到此信息后上报给盒子鱼服务器。
\ No newline at end of file
...
...
Please
register
or
login
to post a comment