Commit 8f39254dd0eb7ea5cff874ae06198c983171b5a3
1 parent
2d8f57f3
perf(PlayService): 修改截图请求使用 FLV 地址,解决 RTSP 地址截图出现图像丢包模糊的问题
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
| @@ -271,7 +271,7 @@ public class PlayServiceImpl implements IPlayService { | @@ -271,7 +271,7 @@ public class PlayServiceImpl implements IPlayService { | ||
| 271 | onPublishHandlerForPlay(mediaServerItemInuse, response, device.getDeviceId(), channelId); | 271 | onPublishHandlerForPlay(mediaServerItemInuse, response, device.getDeviceId(), channelId); |
| 272 | hookEvent.response(mediaServerItemInuse, response); | 272 | hookEvent.response(mediaServerItemInuse, response); |
| 273 | logger.info("[点播成功] deviceId: {}, channelId: {}", device.getDeviceId(), channelId); | 273 | logger.info("[点播成功] deviceId: {}, channelId: {}", device.getDeviceId(), channelId); |
| 274 | - String streamUrl = String.format("rtsp://127.0.0.1:%s/%s/%s", mediaServerItemInuse.getRtspPort(), "rtp", ssrcInfo.getStream()); | 274 | + String streamUrl = String.format("http://127.0.0.1:%s/%s/%s.live.flv", mediaServerItemInuse.getHttpPort(), "rtp", ssrcInfo.getStream()); |
| 275 | String path = "snap"; | 275 | String path = "snap"; |
| 276 | String fileName = device.getDeviceId() + "_" + channelId + ".jpg"; | 276 | String fileName = device.getDeviceId() + "_" + channelId + ".jpg"; |
| 277 | // 请求截图 | 277 | // 请求截图 |