名称 | 格式 | 是否可空 | 说明 |
---|---|---|---|
AppId | String | 否 | 该系统在开放平台中的ID |
Timestamp | String | 否 | 时间参数。时间验证与服务器时间误差不得超过10分钟(600秒),以北京时间为准。 获取方法:C#: long nowTime = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000 ; Javascript: Math.round(new Date().getTime() / 1000); 结果例如:1369898793 |
Token | String | 否 | Timestamp +AppSecret在进行MD5加密后的字符串(转换后字母都为小写),AppSecret为该系统在开放平台中的密钥) 例如: Timestamp为1370585811,AppSecret为0123456789,加密前的字符串:13705858110123456789,加密后的字符串:c0c5ad4975c735e1c856d6a6b5d4310b |
Id | String | 否 | 视频Id |
{ "AuthMsg": {"ResultCode":"1", "ResultMessage":"OK" }, "VideoStatus":1 }
名称 | 格式 | 说明 |
---|---|---|
AuthMsg | AuthAppMsgModel | 接口调用结果 |
VideoStatus | VideoStatus | 视频状态信息 |
名称 | 格式 | 说明 |
---|---|---|
ResultCode | string | 接口调用结果编码(详细) |
ResultMessage | string | 接口调用结果信息(详细) |
GET http://open.ksedu.cn/Api/Video/VideoStatus?id=02348139-a186-4137-aff7-bb29e5e2324b&AppId=jctv&Timestamp=1425438634& Token=c19e8292880ee13f417a14f28fb12266 HTTP/1.1 Host: open.ksedu.cn Connection: Keep-Alive
HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Type: application/json; charset=utf-8 Expires: -1 Server: Microsoft-IIS/7.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Wed, 04 Mar 2015 03:03:08 GMT Content-Length: 86 {"AuthMsg":{"ResultCode":"1","ResultMessage":"OK"}, "VideoStatus":1 }
视频状态 | 说明 |
---|---|
0 | 等待删除 |
1 | 正常 |
2 | 等待下载 |
3 | 正在下载 |
4 | 下载失败 |
5 | 等待转码 |
6 | 正在转码 |
7 | 转码失败 |
8 | 未上传视频文件 |