修复时间戳发送错误导致seek失败

This commit is contained in:
lin
2025-05-26 09:54:33 +08:00
parent a7f9cbd8ef
commit 9da6e874fb

View File

@@ -12,6 +12,7 @@ import org.springframework.stereotype.Component;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.math.BigDecimal;
import java.net.ConnectException; import java.net.ConnectException;
import java.net.SocketTimeoutException; import java.net.SocketTimeoutException;
import java.util.HashMap; import java.util.HashMap;
@@ -442,8 +443,10 @@ public class ZLMRESTfulUtils {
param.put("vhost", "__defaultVhost__"); param.put("vhost", "__defaultVhost__");
param.put("app", app); param.put("app", app);
param.put("stream", stream); param.put("stream", stream);
param.put("stamp", stamp); BigDecimal bigDecimal = new BigDecimal(stamp);
param.put("stamp", bigDecimal);
param.put("schema", schema); param.put("schema", schema);
System.out.println(bigDecimal);
return sendPost(mediaServer, "seekRecordStamp",param, null); return sendPost(mediaServer, "seekRecordStamp",param, null);
} }
} }