获取直播教室的点播信息
儿童编程
直播结束15分钟以后可以查询到点播信息
获取直播信息
Method and URL Structure
| Method |
Method Resource URL |
Descriptions |
Authentications Required |
| GET |
/server/classroom/video_record_list/ |
获取视频列表 |
NO |
Request Parameters
| Name |
Description |
Required |
Default |
| stream_name |
直播教室的 steam_name |
YES |
|
cURL Example
curl http://127.0.0.1:8000/server/classroom/video_record_list/?stream_name=xxxx
Response
{ "Total":1, "LiveRecordVideoList":{ "LiveRecordVideo":[{ "StreamName":"w3uly9gmran4777wmlwgl2uav7e22n93", "RecordStartTime":"2018-11-15T07:07:10Z", "AppName":"chengxuyuan-live", "PlaylistId":"7b4bde8dc4dc42cc84f522273dc7d53f", "DomainName":"live.coding61.com", "RecordEndTime":"2018-11-15T07:45:23Z", "Video":{ "Status":"Normal", "Description":"w3uly9gmran4777wmlwgl2uav7e22n93|chengxuyuan-live|live.coding61.com", "Title":"w3uly9gmran4777wmlwgl2uav7e22n93", "CreationTime":"2018-11-15T07:48:24Z", "DownloadSwitch":"on", "TemplateGroupId":"d9856d92daa6f1426ef61edb7e616930", "CoverURL":"https://v.coding61.com/ae7dd4200dc44338be73c41bde6d32d5/0/32.jpg", "VideoId":"ae7dd4200dc44338be73c41bde6d32d5", "Snapshots":{ "Snapshot":[ "https://v.coding61.com/ae7dd4200dc44338be73c41bde6d32d5/1.jpg", .... ]}, "CreateTime":"2018-11-15 15:48:24", "ModifyTime":"2018-11-15 15:54:12", "Duration":2291.132, "CustomerId":34608759, "Size":64223 } }] }}
Response Data Description
这些信息有用和重要
| Name |
Description |
| Total |
视频个数,一般是一个 |
| Video |
每一个视频信息 |
| Video.CoverURL |
封面 |
| Video.VideoId |
视频 ID,用来获取 play auth |
| Video.Snapshots |
视频的一些截图 |
获取视频播放权限
Method and URL Structure
| Method |
Method Resource URL |
Descriptions |
Authentications Required |
| GET |
/server/classroom/video_record_list/ |
获取播放权限 |
NO |
Request Parameters
| Name |
Description |
Required |
Default |
| video_id |
视频 ID |
YES |
|
| stream_name |
直播教室的 steam_name |
YES |
|
cURL Example
curl http://127.0.0.1:8000/server/classroom/video_record_list/?stream_name=xxxx&video_id=ae7dd4200dc44338be73c41bde6d32d5
Response
{ "PlayAuth":"eyJTZWN1...AuthTokenString", "VideoMeta":{ "Status":"Normal", "Duration":2291.132080078125, "CoverURL":"https://v.coding61.com/ae7dd4200dc44338be735.jpg", "VideoId":"ae7dd4200dc44338be73c41bde6d32d5", "Title":"an4777wmlwgl2uav7e22n93" }}
Response Data Description
| Name |
Description |
| PlayAuth |
播放视频用的,300秒后过期,只能使用一次 |
| VideoMeta.CoverURL |
封面 |
| VideoMeta.VideoId |
视频 ID |
| Title |
视频的标题,暂时不要用这个,用教室的标题 |