|
|
@@ -1,5 +1,6 @@
|
|
|
package com.zhiqiyun.open.core.video.impl;
|
|
|
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.google.common.collect.Maps;
|
|
|
import com.zhiqiyun.open.core.video.VideoDockingUrbanService;
|
|
|
@@ -117,7 +118,7 @@ public class VideoDockingUrbanServiceImpl implements VideoDockingUrbanService {
|
|
|
mediaURLParam.put("packProtocolType", 1);
|
|
|
mediaURLParam.put("protocolType", 2);
|
|
|
mediaURLParam.put("serviceType", 1);
|
|
|
- mediaURLParam.put("streamType", 1);
|
|
|
+ mediaURLParam.put("streamType", 3);
|
|
|
mediaURLParam.put("transMode", 0);
|
|
|
mediaURLParam.put("clientType", 5);
|
|
|
paramValues.put("mediaURLParam", mediaURLParam);
|
|
|
@@ -130,7 +131,7 @@ public class VideoDockingUrbanServiceImpl implements VideoDockingUrbanService {
|
|
|
Map<String, Object> paramValues = Maps.newHashMap();
|
|
|
paramValues.put("cameraCode", cameraCode);
|
|
|
Map<String, Object> realplayParam = Maps.newHashMap();
|
|
|
- realplayParam.put("streamType", 1);
|
|
|
+ realplayParam.put("streamType", 3);
|
|
|
realplayParam.put("protocolType", 1);
|
|
|
realplayParam.put("directFirst", 0);
|
|
|
realplayParam.put("multiCast", 0);
|
|
|
@@ -207,7 +208,7 @@ public class VideoDockingUrbanServiceImpl implements VideoDockingUrbanService {
|
|
|
// 1. 创建HttpClient
|
|
|
CloseableHttpClient httpClient = createSSLClientDefault();
|
|
|
String url = String.format("%s" + uri, URI);
|
|
|
- log.info("REQUEST URI:{},cooke:{}", url, cookie);
|
|
|
+ log.info("REQUEST URI:{},paramValues:{},cooke:{}", url, JSONUtil.toJsonStr(paramValues), cookie);
|
|
|
RequestConfig defaultConfig = RequestConfig.custom()
|
|
|
//连接超时时间10秒
|
|
|
.setConnectTimeout(10000)
|