http://api.polyv.net/live/v2/channels/playback-list
{
"code": 200,
"status": "success",
"message": "",
"data":{
"pageNumber": 1,
"totalItems": 1,
"contents":[
{
"videoId": "3676ba2be7",
"videoPoolId": "8l8v64820d9ba661b12356d3d2ce90e7_8",
"userId": "8l8v64820d",
"channelId": 134136,
"title": "test-hl11111",
"firstImage": "http://img.videocc.net//uimage/8/8l8v64820d/7/8l8v64820d9ba661b12356d3d2ce90e7_0.jpg",
"duration": "00:01:41",
"myBr": "1",
"qid": null,
"seed": 0,
"ordertime": 0,
"createdTime": 1507794147000,
"lastModified": 1507794300000,
"asDefault": "N",
"url": "http://mpv.videocc.net/8l8v64820d/7/8l8v64820d9ba661b12356d3d2ce90e7_1.m3u8",
"channelSessionId": null,
"mergeInfo": null,
"status": "Y",
"fileUrl": "http://videolib.videocc.net/hrlemvlu0020171012150939842/recordfe-hrlemvlu0020171012150939842--20171012153617.m3u8",
"fileId": "258f5ff7ef329856332a49c50fc0db5a",
"startTime": "20171012153617"
}
],
"endRow": 1,
"startRow": 1,
"nextPageNumber": 1,
"firstPage": true,
"lastPage": true,
"prePageNumber": 1,
"totalPages": 1,
"limit": 1,
"offset": 0
}
}
<?php
$timestamp=time()*1000;
$appId="eh4z28vlbo";
$courseId="107269";
$appSecret = "f32c07974b2c4a1bae2a0bcc618b281c";
$str=$appSecret."appId".$appId."courseId".$channelId."timestamp".$timestamp.$appSecret;
$sign = strtoupper(md5($str));
$url="http://api.polyv.net/live/v2/channels/playback-list?appId=$appId&courseId=$courseId&sign=$sign×tamp=$timestamp";
$ch = curl_init() or die ( curl_error() );
curl_setopt( $ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 360);
$response = curl_exec ( $ch );
curl_close ( $ch );
echo $response;
?>
timestamp =1489485894000
courseId="107269"
appId = "eh4z28vlbo"
appId = "eh4z28vlbo"
courseId="107269"
timestamp =1489485894000
f32c07974b2c4a1bae2a0bcc618b281cappIdeh4z28vlbocourseId107269timestamp
1489485894000f32c07974b2c4a1bae2a0bcc618b281c
18872B0CE34719CB34B15A3FB173D229