智慧校园

对外提供的 亦信 电子班牌等


1.手机端进入今日直播获取数据

<p><strong>简要描述:</strong></p> <ul> <li>手机端进入今日直播获取数据</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://192.168.0.111:8083/RichCloud/appLive/getTodayLive.do</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">apiKey</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>手机apikey</td> </tr> <tr> <td style="text-align: left;">schoolId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>学校Id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "ResponseCode": 0, "ResponseResult": "获取成功", "ResponseObject": { "apiKey":"faacd0fde2adef80d8a7ffdc7ebd8cc577cf7adedb8938c485382e6db788481ea288d1a72c89cf74bf2f0dd92338f0c776ac5b7e3cdcfcefd08dce4b3d1d37a4", "pagesNow": { "list": [ { "liveId": 49, "beginTime": "2018-10-26 20:00:00.0", "endTime": "2019-02-26 23:00:00.0", "title": "请问人ad", "content": "爱迪生", "userId": 291, "remark": "阿萨德", "gradeName": "高中三年级", "subject": "外语", "createTime": "2018-10-26 15:41:55.0", "examineContent": null, "examineUserId": null, "status": 1, "liveName": "学校管理员", "range": 1, "charge": 0, "price": 0, "stringTime": 20181026200000, "nowTime": 20181031102202, "stringEndTime": 20190226230000, "livePathId": 29, "headImg": "http://img-avatar.richx.cn/head/avatar_default.png", "introduction": null, "minute": 177300, "type": 0, "schoolId": "3201140009", "tvId": null, "channelId": null, "httpPath": "http://pull.richx.cn/live/test1.m3u8", "rtmpPath": "rtmp://pull.richx.cn/live/test1" } ], "allRow": 1, "totalPage": 1, "currentPage": 1, "pageSize": 4, "hasPreviousPage": false, "hasNextPage": false, "lastPage": true, "firstPage": true }, "schoolId": "3201140009", "apiKeyTimeOut": "2", "pageWait": { "list": [ { "liveId": 52, "beginTime": "2018-10-31 13:00:00.0", "endTime": "2018-10-31 18:00:00.0", "title": "吃的啥", "content": "爱上", "userId": 84773, "remark": "爱上", "gradeName": "九年义务教育三年级", "subject": "数学", "createTime": "2018-10-31 10:21:03.0", "examineContent": "阿萨德", "examineUserId": 291, "status": 1, "liveName": "喻宏源", "range": 1, "charge": 0, "price": 0, "stringTime": 20181031130000, "nowTime": 20181031102202, "stringEndTime": 20181031180000, "livePathId": 28, "headImg": "http://img-avatar.richx.cn/head/avatar_default.png", "introduction": "", "minute": 300, "type": 0, "schoolId": "3201140009", "tvId": null, "channelId": null, "httpPath": "http://pull.richx.cn/live/test2.m3u8", "rtmpPath": "rtmp://pull.richx.cn/live/test2" } ], "allRow": 1, "totalPage": 1, "currentPage": 1, "pageSize": 4, "hasPreviousPage": false, "hasNextPage": false, "lastPage": true, "firstPage": true } } } 附上Live直播实体类 public class Live { private int liveId;// 直播Id private String beginTime;// 开始时间 private String endTime;// 结束时间 private String title;// 标题 private String content;// 内容 private int userId;// 直播人员 private String remark;// 备注 private String gradeName;// 年级名称 private String subject;// 学科名称 private String createTime;// 创建时间 private String examineContent;// 审核意见 private Integer examineUserId;// 审核人 private Integer status;// 状态0:待审核,1:审核通过,2:审核失败 private String liveName;// 直播人名称 private Integer range;// 直播范围(0:全网无限制,1:有限制) private Integer charge;// 收费情况(0:免费,1:收费) private Double price;// 收费价格 private Long stringTime;// 直播开始时间yyyyMMddHHmmss private Long nowTime;// 直播开始时间yyyyMMddHHmmss private Long stringEndTime;// 直播结束时间yyyyMMddHHmmss private int livePathId;// 直播路径或串流码 private String headImg;// 用户头像 private String introduction; private Integer minute;// 直播时长(分) private Integer type;// 0:今日直播,1:校园电视台直播 private String schoolId;// 学校Id private Integer tvId;// 电视台Id private Integer channelId;// 频道Id private String httpPath;// 频道Id private String rtmpPath;// 频道Id }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">pagesNow</td> <td style="text-align: left;">是</td> <td style="text-align: left;">pages</td> <td>正在直播的集合</td> </tr> <tr> <td style="text-align: left;">pageWait</td> <td style="text-align: left;">是</td> <td style="text-align: left;">pages</td> <td>等待直播的集合</td> </tr> </tbody> </table> <p><strong>备注</strong> rtmpPath为拉流地址,获取直播内容。</p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML