Get Video Library List (Returns MP4 with Transcoding)
Updated: 2022-09-02 18:08:07
Interface URL
http://api.polyv.net/live/v3/channel/playback/special-list
Interface Description
1. Purpose: Retrieves the video list information of playback videos. The returned content includes the processed MP4 address (if the playback video is merged or edited and then transcoded, the returned MP4 will be null).
2. The interface supports the HTTPS protocol.
JSON
Request Method
GET
Request Parameters
Successful Response JSON Example:
{
"code": 200,
"status": "success",
"message": "",
"data": {
"pageNumber": 1,
"totalItems": 3,
"contents": [
{
"videoId": "6ce905500b",
"videoPoolId": "54df86edc42918572a835cb32295895b_5",
"userId": "54df86edc4",
"channelId": 100000,
"title": "保利威视",
"firstImage": "http://img.videocc.net//uimage/5/54df86edc4/b/54df86edc42918572a835cb32295895b_0.jpg",
"duration": "00:27:10",
"myBr": "1",
"qid": null,
"seed": 0,
"ordertime": 0,
"createdTime": 1526018843000,
"lastModified": 1526018940000,
"rank": 9,
"asDefault": "N",
"url": "http://mpv.videocc.net/54df86edc4/b/54df86edc42918572a835cb32295895b_1.m3u8",
"channelSessionId": null,
"mergeInfo": "[\"20180509192019,956,f0v8mk8lfx\",\"20180510092124,673,f0v8mk8lfx\"]",
"status": "Y",
"fileUrl": "http://videolib.videocc.net/ec7paqepj320161102141026068/recordmerge.ec7paqepj320161102141026068_20180511140712.m3u8",
"fileId": "dc673c60ffa36bf04743a255a2eabe61",
"startTime": "20180509192019",
"liveType": "alone",
"mp4":null
},
{
"videoId": "752d0bd60f",
"videoPoolId": "54df86edc489fb78f3fab89eb77094c4_5",
"userId": "54df86edc4",
"channelId": 100000,
"title": "保利威视",
"firstImage": "http://img.videocc.net//uimage/5/54df86edc4/4/54df86edc489fb78f3fab89eb77094c4_0.jpg",
"duration": "00:00:37",
"myBr": "1",
"qid": null,
"seed": 0,
"ordertime": 0,
"createdTime": 1525879207000,
"lastModified": 1525879207000,
"rank": 6,
"asDefault": "N",
"url": "http://mpv.videocc.net/54df86edc4/4/54df86edc489fb78f3fab89eb77094c4_1.m3u8",
"channelSessionId": "f0t3g29fwb",
"mergeInfo": null,
"status": "Y",
"fileUrl": "http://videolib.videocc.net/ec7paqepj320161102141026068/recordf.ec7paqepj320161102141026068_20180507155013.m3u8",
"fileId": "c21fd49fae4f42a7b1c637be6ab749f1",
"startTime": "20180507155013",
"liveType": "ppt",
"mp4":"http://videolib.videocc.net/ec7paqepj320161102141026068/recordf.ec7paqepj320161102141026068_20180507155013.mp4"
},
{
"videoId": "4d8a9ec87f",
"videoPoolId": "54df86edc45346b768f5437cb91844e8_5",
"userId": "54df86edc4",
"channelId": 100000,
"title": "保利威视",
"firstImage": "http://img.videocc.net//uimage/5/54df86edc4/8/54df86edc45346b768f5437cb91844e8_0.jpg",
"duration": "00:00:42",
"myBr": "1",
"qid": null,
"seed": 0,
"ordertime": 0,
"createdTime": 1525879189000,
"lastModified": 1525879201000,
"rank": 4,
"asDefault": "N",
"url": "http://mpv.videocc.net/54df86edc4/8/54df86edc45346b768f5437cb91844e8_1.m3u8",
"channelSessionId": "f0gp7zunbp",
"mergeInfo": null,
"status": "Y",
"fileUrl": "http://videolib.videocc.net/ec7paqepj320161102141026068/recordf.ec7paqepj320161102141026068_20180426140123.m3u8",
"fileId": "424ecdd5d0689408f7531878b49a2c7d",
"startTime": "20180426140123",
"liveType": "alone"
"mp4":"http://videolib.videocc.net/ec7paqepj320161102141026068/recordf.ec7paqepj320161102141026068_20180426140123.mp4"
}
],
"endRow": 3,
"startRow": 1,
"firstPage": true,
"prePageNumber": 1,
"totalPages": 1,
"nextPageNumber": 1,
"lastPage": true,
"limit": 3,
"offset": 0
}
}
Field Description
PHP Request Example
<?php
//引用config.php
include 'config.php';
//接口需要的参数(非sign)赋值
$channelId = "127075";
$page = "1"; //页数
$pageSize="10";//每页显示的数据
$params = array(
'appId'=>$appId,
'channelId'=>$channelId,
'page'=>$page,
'pageSize'=>$pageSize,
'timestamp'=>$timestamp
);
//生成sign
$sign = getSign($params); //详细查看config.php文件的getSign方法
//接口请求url
$url = "http://api.polyv.net/live/v3/channel/playback/special-list?appId=$appId"."&page=$page"."&pageSize=$pageSize"."×tamp=$timestamp"."&sign=$sign"."&channelId=".$channelId;
//输出接口请求结果
echo file_get_contents($url);
?>