Commit 374fb04643d6dd819470e3ddd4a3b3d5790039e9

Authored by 刘炯
1 parent 8b792a25

2

02.直播云/1.0 获取直播活动信息接口Server.md
@@ -66,31 +66,31 @@ HTTP GET @@ -66,31 +66,31 @@ HTTP GET
66 "extensions":"", 66 "extensions":"",
67 "activityCategory":"", 67 "activityCategory":"",
68 "mp4_url_rate1":"", 68 "mp4_url_rate1":"",
69 - "mp4_url_rate2":"http://api.cnlive.com/open/api3/play/IPS/liveplayBySWF?channelID=xinyingshi&rate=2&sp_id=iqhpk8pl19", 69 + "mp4_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayBySWF?channelID=xinyingshi&appId=iqhpk8pl19",
70 "mp4_url_rate3":"", 70 "mp4_url_rate3":"",
71 "mp4_url_rate4":"", 71 "mp4_url_rate4":"",
72 "hls_url_rate1":"", 72 "hls_url_rate1":"",
73 - "hls_url_rate2":"http://api.cnlive.com/open/api3/play/IPS/liveplay?channelID=xinyingshi&rate=2&sp_id=iqhpk8pl19", 73 + "hls_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayByH5?channelID=xinyingshi&appId=iqhpk8pl19",
74 "hls_url_rate3":"", 74 "hls_url_rate3":"",
75 "hls_url_rate4":"", 75 "hls_url_rate4":"",
76 "extViews"[ 76 "extViews"[
77 77
78 "mp4_url_rate1":"", 78 "mp4_url_rate1":"",
79 - "mp4_url_rate2":"http://api.cnlive.com/open/api3/play/IPS/liveplayBySWF?channelID=xinyingshi_m1&rate=2&sp_id=iqhpk8pl19", 79 + "mp4_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayBySWF?channelID=xinyingshi&appId=iqhpk8pl19",
80 "mp4_url_rate3":"", 80 "mp4_url_rate3":"",
81 "mp4_url_rate4":"", 81 "mp4_url_rate4":"",
82 "hls_url_rate1":"", 82 "hls_url_rate1":"",
83 - "hls_url_rate2":"http://api.cnlive.com/open/api3/play/IPS/liveplay?channelID=xinyingshi_m1&rate=2&sp_id=iqhpk8pl19", 83 + "hls_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayByH5?channelID=xinyingshi&appId=iqhpk8pl19",
84 "hls_url_rate3":"", 84 "hls_url_rate3":"",
85 "hls_url_rate4":"" 85 "hls_url_rate4":""
86 }, 86 },
87 87
88 "mp4_url_rate1":"", 88 "mp4_url_rate1":"",
89 - "mp4_url_rate2":"http://api.cnlive.com/open/api3/play/IPS/liveplayBySWF?channelID=xinyingshi_m2&rate=2&sp_id=iqhpk8pl19", 89 + "mp4_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayBySWF?channelID=xinyingshi&appId=iqhpk8pl19",
90 "mp4_url_rate3":"", 90 "mp4_url_rate3":"",
91 "mp4_url_rate4":"", 91 "mp4_url_rate4":"",
92 "hls_url_rate1":"", 92 "hls_url_rate1":"",
93 - "hls_url_rate2":"http://api.cnlive.com/open/api3/play/IPS/liveplay?channelID=xinyingshi_m2&rate=2&sp_id=iqhpk8pl19", 93 + "hls_url_rate2":"http://api.cnlive.com/open/api2/live_ips/liveplayByH5?channelID=xinyingshi&appId=iqhpk8pl19",
94 "hls_url_rate3":"", 94 "hls_url_rate3":"",
95 "hls_url_rate4":"" 95 "hls_url_rate4":""
96 96
@@ -105,10 +105,10 @@ HTTP GET @@ -105,10 +105,10 @@ HTTP GET
105 public String getPlayInfo() { 105 public String getPlayInfo() {
106 String result = ""; 106 String result = "";
107 Map params = new HashMap<>(); 107 Map params = new HashMap<>();
108 - params.put("sp_id", "iqhpk8pl19");  
109 - params.put("customID", "d849bb4277be42799df3ffc21654d949"); 108 + params.put("appId", "iqhpk8pl19");
  109 + params.put("activityId", "d849bb4277be42799df3ffc21654d949");
110 params.put("timestamp", System.currentTimeMillis()/1000+""); 110 params.put("timestamp", System.currentTimeMillis()/1000+"");
111 - String url = OpenUtil.buildURL("http://api.cnlive.com/open/api2/zbsc/getLiveActivityPlayInfo", params, "672db30805f848f59ec3728f8347a4a0"); 111 + String url = OpenUtil.buildURL("http://api.cnlive.com/open/api2/live_epg/getLiveActivityPlayInfo4Server", params, "672db30805f848f59ec3728f8347a4a0");
112 HttpURLConnection connection; 112 HttpURLConnection connection;
113 try { 113 try {
114 URL requestUrl = new URL(url); 114 URL requestUrl = new URL(url);