修改抓拍存储

dev/abl支持
648540858 2024-04-10 16:52:39 +08:00
parent bb350e847d
commit 1d36382986
1 changed files with 7 additions and 5 deletions

View File

@ -378,11 +378,13 @@ public class ABLRESTfulUtils {
param.put("stream", stream);
param.put("timeout_sec", timeoutSec);
param.put("vhost", "_defaultVhost_");
JSONObject jsonObject = sendPost(mediaServer, "getSnap", param, null);
if (jsonObject != null && jsonObject.getInteger("code") == 0) {
String url = jsonObject.getString("url");
sendGetForImgForUrl(url, path, fileName);
}
// JSONObject jsonObject = sendPost(mediaServer, "getSnap", param, null);
// if (jsonObject != null && jsonObject.getInteger("code") == 0) {
// String url = jsonObject.getString("url");
// sendGetForImgForUrl(url, path, fileName);
// }
sendGetForImg(mediaServer, "getSnap", param, path, fileName);
}
}