Commit 374fb04643d6dd819470e3ddd4a3b3d5790039e9
1 parent
8b792a25
2
Showing
1 changed file
with
9 additions
and
9 deletions
02.直播云/1.0 获取直播活动信息接口Server.md
| ... | ... | @@ -66,31 +66,31 @@ HTTP GET |
| 66 | 66 | "extensions":"", |
| 67 | 67 | "activityCategory":"", |
| 68 | 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 | 70 | "mp4_url_rate3":"", |
| 71 | 71 | "mp4_url_rate4":"", |
| 72 | 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 | 74 | "hls_url_rate3":"", |
| 75 | 75 | "hls_url_rate4":"", |
| 76 | 76 | "extViews"[ |
| 77 | 77 | { |
| 78 | 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 | 80 | "mp4_url_rate3":"", |
| 81 | 81 | "mp4_url_rate4":"", |
| 82 | 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 | 84 | "hls_url_rate3":"", |
| 85 | 85 | "hls_url_rate4":"" |
| 86 | 86 | }, |
| 87 | 87 | { |
| 88 | 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 | 90 | "mp4_url_rate3":"", |
| 91 | 91 | "mp4_url_rate4":"", |
| 92 | 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 | 94 | "hls_url_rate3":"", |
| 95 | 95 | "hls_url_rate4":"" |
| 96 | 96 | } |
| ... | ... | @@ -105,10 +105,10 @@ HTTP GET |
| 105 | 105 | public String getPlayInfo() { |
| 106 | 106 | String result = ""; |
| 107 | 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 | 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 | 112 | HttpURLConnection connection; |
| 113 | 113 | try { |
| 114 | 114 | URL requestUrl = new URL(url); | ... | ... |