Commit 968ec879f50f80768d12937a24f1f9eeb364a874
1 parent
8a00a036
修正本地平台播放时上级无法点播同一流视频的问题
Showing
1 changed file
with
3 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/vmanager/service/impl/PlayServiceImpl.java
| @@ -86,6 +86,9 @@ public class PlayServiceImpl implements IPlayService { | @@ -86,6 +86,9 @@ public class PlayServiceImpl implements IPlayService { | ||
| 86 | msg.setId(DeferredResultHolder.CALLBACK_CMD_PlAY + uuid); | 86 | msg.setId(DeferredResultHolder.CALLBACK_CMD_PlAY + uuid); |
| 87 | msg.setData(JSON.toJSONString(streamInfo)); | 87 | msg.setData(JSON.toJSONString(streamInfo)); |
| 88 | resultHolder.invokeResult(msg); | 88 | resultHolder.invokeResult(msg); |
| 89 | + if (hookEvent != null) { | ||
| 90 | + hookEvent.response(JSONObject.parseObject(JSON.toJSONString(streamInfo))); | ||
| 91 | + } | ||
| 89 | } else { | 92 | } else { |
| 90 | redisCatchStorage.stopPlay(streamInfo); | 93 | redisCatchStorage.stopPlay(streamInfo); |
| 91 | storager.stopPlay(streamInfo.getDeviceID(), streamInfo.getChannelId()); | 94 | storager.stopPlay(streamInfo.getDeviceID(), streamInfo.getChannelId()); |