Commit df76348d9957e6afce65356b3f9e6928adbc326d

Authored by 刘基城
1 parent b28aea72

删除 老 ips接口

02.直播云/1.2 获取flash直播URL接口.md deleted 100644 → 0
1 -#### 请求参数说明:  
2 -| 参数名 | 参数类型 | 必选 | 参数说明 |  
3 -| :----------- | :------: | :------: | :------: |  
4 -| appId | string | true | 应用ID |  
5 -| channelID| string | true | 直播频道或 devID_主播ID |  
6 -| uid| string | false | 用户标识(uuid_时间戳)|  
7 -| sid| string | false | 用户ID |  
8 -| retry | int | false | 重试次数,在0~4之间累加 |  
9 -| rate | int | false | 1-流畅,2-标清,3-高清,4-超清,不传为2,EPG接口会返回实际的码流路数--标清为必须项|  
10 -  
11 -#### 返回结果 json  
12 -```json  
13 - {  
14 - "errorMessage":"成功",  
15 - "data":{  
16 - "location":"rtmp://wsrtmp4.live.cnlive.com/cdn/xinyingshi?wsSecret=f10722a1a2ffd198772b2ac8cf1c0afb&wsTime=57a3f066"  
17 - },  
18 - "errorCode":"0"  
19 - }  
20 -```  
21 -  
22 -#### java 示例  
23 -  
24 -```java  
25 - public String getFlashUrl() {  
26 - String result = "";  
27 - String mp4Url = "http://api.cnlive.com/open/api2/live_ips/liveplayBySWF?channelID=xinyingshi&appId=iqj730vn11";  
28 - try {  
29 - URL requestUrl = new URL(mp4Url);  
30 - connection = (HttpURLConnection)requestUrl.openConnection();  
31 - connection.setRequestMethod("GET");  
32 - connection.setDoInput(true);  
33 - connection.setDoOutput(true);  
34 - connection.connect();//连接  
35 -  
36 - //获得返回值  
37 - if(connection.getResponseCode() == HttpURLConnection.HTTP_OK){  
38 - InputStream in = connection.getInputStream();  
39 - String currentLine = "";  
40 - if(in != null){  
41 - BufferedReader br = new BufferedReader(new InputStreamReader(in,"utf-8"));  
42 - while((currentLine = br.readLine()) != null){  
43 - result += currentLine;  
44 - }  
45 - br.close();  
46 - }  
47 - }  
48 - }catch (Exception e) {  
49 - e.printStackTrace();  
50 - }  
51 - if(BaseUtil.notBlank(result)) {  
52 - resultJson = JSONObject.parseObject(result);  
53 - result = resultJson.getJSONObject("data").getString("location");  
54 - }  
55 - return result;  
56 - }  
57 -```  
58 -  
59 -#### [页面播放DEMO](http://open.cnlive.com/demo/live/flash_live_demo.html)  
60 \ No newline at end of file 0 \ No newline at end of file
02.直播云/1.8 获取APP直播URL接口.md deleted 100644 → 0
1 -#### 请求参数说明:  
2 -| 参数名 | 参数类型 | 必选 | 参数说明 |  
3 -| :----------- | :------: | :------: | :------: |  
4 -| appId | string | true | 应用ID |  
5 -| channelID| string | true | 直播频道或主播ID |  
6 -| uid| string | false | 用户标识(uuid_时间戳),不传为0 |  
7 -| sid| string | false | 用户ID,不传为0 |  
8 -| isHLS | int | false | 0(FLV/MP4流),1(HLS流),不传则默认为1|  
9 -| retry | int | false | 重试次数,在0--4之间递增累加 |  
10 -| rate | int | false | 1-流畅,2-标清,3-高清,4-超清,不传为2, getLiveActivityPlayInfo 接口会返回实际的码流路数|  
11 -| sign | String | true | 签名规则见<a href="http://help.open.cnlive.com/common.html">签名详情</a> |  
12 \ No newline at end of file 0 \ No newline at end of file
02.直播云/1.9 获取H5直播URL接口.md deleted 100644 → 0
1 -#### 请求参数说明:  
2 -| 参数名 | 参数类型 | 必选 | 参数说明 |  
3 -| :----------- | :------: | :------: | :------: |  
4 -| appId | string | true | 应用ID |  
5 -| channelID| string | true | 直播频道或主播ID |  
6 -| uid| string | false | 用户标识(uuid_时间戳),不传为0 |  
7 -| sid| string | false | 用户ID,不传为0 |  
8 -| retry | int | false | 重试次数,从0开始,不断累加,不传为0 |  
9 -| rate | int | false | 1-流畅,2-标清,3-高清,4-超清,不传为2,EPG接口会返回实际的码流路数--标清为必须项|  
10 -  
11 -#### [页面DEMO](http://open.cnlive.com/demo/live/h5_live_demo.html)  
12 \ No newline at end of file 0 \ No newline at end of file