| | |
| | | /** |
| | | * 获取视频预览数据 |
| | | * |
| | | * @param url 视频预览url |
| | | * @param type 类型,新/老 |
| | | * @param url 视频预览url |
| | | * @param cameraIndexCode 监控点唯一标识 |
| | | * @param protocol |
| | | * @param expand |
| | | * @return |
| | | */ |
| | | public static String GetCameraPreviewURL(Integer type,String url, String cameraIndexCode, String protocol) { |
| | | public static String GetCameraPreviewURL(Integer type,String url, String cameraIndexCode, String protocol,String expand) { |
| | | /** |
| | | * 组装请求参数 |
| | | */ |
| | |
| | | jsonBody.put("streamType", 0); |
| | | jsonBody.put("protocol", protocol); |
| | | jsonBody.put("transmode", 1); |
| | | // jsonBody.put("expand", "streamform=ps"); |
| | | if (null!= expand && !expand.equals("")) { |
| | | jsonBody.put("expand", expand); |
| | | } |
| | | String body = jsonBody.toJSONString(); |
| | | // 调用公共方法 |
| | | return common(type,url,body); |