修复截图传参错误 #2038
This commit is contained in:
@@ -218,9 +218,9 @@ public class ZLMMediaNodeServerService implements IMediaNodeServerService {
|
|||||||
public void getSnap(MediaServer mediaServer, String app, String stream, int timeoutSec, int expireSec, String path, String fileName) {
|
public void getSnap(MediaServer mediaServer, String app, String stream, int timeoutSec, int expireSec, String path, String fileName) {
|
||||||
String streamUrl;
|
String streamUrl;
|
||||||
if (mediaServer.getRtspPort() != 0) {
|
if (mediaServer.getRtspPort() != 0) {
|
||||||
streamUrl = String.format("rtsp://127.0.0.1:%s/%s/%s", mediaServer.getRtspPort(), "rtp", stream);
|
streamUrl = String.format("rtsp://127.0.0.1:%s/%s/%s", mediaServer.getRtspPort(), app, stream);
|
||||||
} else {
|
} else {
|
||||||
streamUrl = String.format("http://127.0.0.1:%s/%s/%s.live.mp4", mediaServer.getHttpPort(), "rtp", stream);
|
streamUrl = String.format("http://127.0.0.1:%s/%s/%s.live.mp4", mediaServer.getHttpPort(), app, stream);
|
||||||
}
|
}
|
||||||
zlmresTfulUtils.getSnap(mediaServer, streamUrl, timeoutSec, expireSec, path, fileName);
|
zlmresTfulUtils.getSnap(mediaServer, streamUrl, timeoutSec, expireSec, path, fileName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user