优化abl云端录像播放效果

This commit is contained in:
lin
2025-09-22 14:31:04 +08:00
parent 15ff87a323
commit 3a594f7bee
6 changed files with 20 additions and 14 deletions

View File

@@ -489,7 +489,7 @@ public class ABLMediaNodeServerService implements IMediaNodeServerService {
@Override
public void seekRecordStamp(MediaServer mediaServer, String app, String stream, Double stamp, String schema) {
ABLResult ablResult = ablresTfulUtils.controlRecordPlay(mediaServer, app, stream, "seek", "120");
ABLResult ablResult = ablresTfulUtils.controlRecordPlay(mediaServer, app, stream, "seek", stamp/1000 + "");
if (ablResult.getCode() != 0) {
log.warn("[abl-seek] 失败:{}", ablResult.getMemo());
}

View File

@@ -527,7 +527,7 @@ public class ABLRESTfulUtils {
param.put("app", app);
param.put("stream", stream);
param.put("command", command);
param.put("value", Long.valueOf(value));
param.put("value", value);
String response = sendGet(mediaServer, "controlRecordPlay", param);
ABLResult ablResult = JSON.parseObject(response, ABLResult.class);
if (ablResult == null) {