POST api/DevilTraining/VideoPlayInfo
魔鬼刷题功能之待播放视频信息获取
Request Information
URI Parameters
None.
Body Parameters
数据获取条件
PM_DevilTraining_VideoPlayInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| BookId |
书籍标识 |
integer |
None. |
| VideoId |
视频标识 |
integer |
None. |
| BookVideoId |
视频在书籍中的标识(用于解决同一章节中重复引用同一个视频时无法识别具体哪个的问题) |
integer |
None. |
| UserToken |
当前登录用户的UserToken,由服务端在用户登录成功之后生成,并在整个访问过程中回传 |
string |
None. |
| DomainName |
来访域名(用户访问该站点时输入的域名) |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"BookId": 1,
"VideoId": 2,
"BookVideoId": 3,
"UserToken": "sample string 4",
"DomainName": "sample string 5"
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APIResponseModelOfM_VideoPlaybackInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | M_VideoPlaybackInfo |
None. |
|
| State | integer |
None. |
|
| Msg |
返回的错误或描述信息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"VideoBeginImage": "sample string 1",
"VideoURL": "sample string 2",
"VideoId": 3,
"VideoTitle": "sample string 4",
"BookVideoId": 5,
"VideoDuration": 6,
"LatestPlayedLength": 7
},
"State": 1,
"Msg": "sample string 2"
}