优化abl云端录像播放效果
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user