| | |
| | | */ |
| | | JSONObject jsonBody = new JSONObject(); |
| | | jsonBody.put("cameraIndexCode", cameraIndexCode); |
| | | // jsonBody.put("streamType", 0); |
| | | // jsonBody.put("transmode", 1); |
| | | // jsonBody.put("expand", "streamform=ps"); |
| | | // jsonBody.put("protocol", "ws"); |
| | | jsonBody.put("streamType", ""); |
| | | jsonBody.put("expand", ""); |
| | | jsonBody.put("eurlExpand", ""); |
| | | jsonBody.put("netZoneCode", 0); |
| | | jsonBody.put("transmode", 1); |
| | | jsonBody.put("talkIndexCode", "ce744c4c67df464f92994185d825b6fa"); |
| | | jsonBody.put("protocol", "wss"); |
| | | String body = jsonBody.toJSONString(); |
| | | /** |
| | | * STEP6:调用接口 |
| | |
| | | //根据子节点编号获取设备播放地址 |
| | | String result3 = GetCameraPreviewURL(HkConstant.previewURLs, code2, ProtocolConstant.HLS); |
| | | //根据子节点编号获取音频对讲地址 |
| | | String result4 = GetTalkURLs(HkConstant.previewURLs, code2); |
| | | |
| | | String result4 = GetTalkURLs(HkConstant.talkURLs, code2); |
| | | |
| | | System.out.println("result结果示例: " + result); |
| | | System.out.println("result1 = " + result1); |