Commit 5640f9f91a8131139a68f56e21c51c1bbfe315b5
1 parent
3287f4d1
1
Showing
1 changed file
with
3 additions
and
3 deletions
8.直播云/1.1 获取直播活动信息接口.md
| ... | ... | @@ -102,11 +102,11 @@ HTTP GET |
| 102 | 102 | |
| 103 | 103 | |
| 104 | 104 | ``` java |
| 105 | -public String getPlayInfo() { | |
| 105 | +public Object getPlayInfo() { | |
| 106 | 106 | String result = ""; |
| 107 | 107 | Map params = new HashMap<>(); |
| 108 | 108 | params.put("sp_id", "iqhpk8pl19"); |
| 109 | - params.put("customID", "d849bb4277be42799df3ffc21654d949"); | |
| 109 | + params.put("activityId", "d849bb4277be42799df3ffc21654d949"); | |
| 110 | 110 | params.put("timestamp", System.currentTimeMillis()/1000+""); |
| 111 | 111 | String url = OpenUtil.buildURL("http://api.cnlive.com/open/api2/zbsc/getLiveActivityPlayInfo", params, "672db30805f848f59ec3728f8347a4a0"); |
| 112 | 112 | HttpURLConnection connection; |
| ... | ... | @@ -136,7 +136,7 @@ public String getPlayInfo() { |
| 136 | 136 | |
| 137 | 137 | if(BaseUtil.notBlank(result)) { |
| 138 | 138 | JSONObject resultJson = JSONObject.parseObject(result); |
| 139 | - return resultJson.getJSONObject("data").getString("hls_url_rate2"); | |
| 139 | + return resultJson; | |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | return ""; | ... | ... |