perf(PlayService): 修改截图请求使用 FLV 地址,解决 RTSP 地址截图出现图像丢包模糊的问题
parent
2d8f57f3c9
commit
8f39254dd0
|
@ -271,7 +271,7 @@ public class PlayServiceImpl implements IPlayService {
|
||||||
onPublishHandlerForPlay(mediaServerItemInuse, response, device.getDeviceId(), channelId);
|
onPublishHandlerForPlay(mediaServerItemInuse, response, device.getDeviceId(), channelId);
|
||||||
hookEvent.response(mediaServerItemInuse, response);
|
hookEvent.response(mediaServerItemInuse, response);
|
||||||
logger.info("[点播成功] deviceId: {}, channelId: {}", device.getDeviceId(), channelId);
|
logger.info("[点播成功] deviceId: {}, channelId: {}", device.getDeviceId(), channelId);
|
||||||
String streamUrl = String.format("rtsp://127.0.0.1:%s/%s/%s", mediaServerItemInuse.getRtspPort(), "rtp", ssrcInfo.getStream());
|
String streamUrl = String.format("http://127.0.0.1:%s/%s/%s.live.flv", mediaServerItemInuse.getHttpPort(), "rtp", ssrcInfo.getStream());
|
||||||
String path = "snap";
|
String path = "snap";
|
||||||
String fileName = device.getDeviceId() + "_" + channelId + ".jpg";
|
String fileName = device.getDeviceId() + "_" + channelId + ".jpg";
|
||||||
// 请求截图
|
// 请求截图
|
||||||
|
|
Loading…
Reference in New Issue