Commit 1bb48e221b82e3bd6c2a1baa54217131b1fbe884

Authored by 648540858
Committed by GitHub
2 parents b96d5801 8f39254d

Merge pull request #691 from xiaoQQya/wvp-28181-2.0

修复视频播放页地址显示错误与截图模糊问题
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
... ... @@ -271,7 +271,7 @@ public class PlayServiceImpl implements IPlayService {
271 271 onPublishHandlerForPlay(mediaServerItemInuse, response, device.getDeviceId(), channelId);
272 272 hookEvent.response(mediaServerItemInuse, response);
273 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 275 String path = "snap";
276 276 String fileName = device.getDeviceId() + "_" + channelId + ".jpg";
277 277 // 请求截图
... ...
web_src/src/components/dialog/devicePlayer.vue
... ... @@ -123,7 +123,7 @@
123 123 </el-dropdown-item>
124 124 <el-dropdown-item v-if="streamInfo.rtcs" :command="streamInfo.rtcs.url">
125 125 <el-tag >RTCS:</el-tag>
126   - <span>{{ streamInfo.rtcs }}</span>
  126 + <span>{{ streamInfo.rtcs.url }}</span>
127 127 </el-dropdown-item>
128 128 <el-dropdown-item v-if="streamInfo.rtmp" :command="streamInfo.rtmp.url">
129 129 <el-tag >RTMP:</el-tag>
... ...