Commit 4f90b28b9359fbe9e9a7d5e12e354cb84d555060
1 parent
d0207839
修复自动点播超时后无法继续点播的问题
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
| @@ -609,7 +609,9 @@ public class ZLMHttpHookListener { | @@ -609,7 +609,9 @@ public class ZLMHttpHookListener { | ||
| 609 | result.onTimeout(() -> { | 609 | result.onTimeout(() -> { |
| 610 | logger.info("[ZLM HOOK] 预览流自动点播, 等待超时"); | 610 | logger.info("[ZLM HOOK] 预览流自动点播, 等待超时"); |
| 611 | msg.setData(new HookResult(ErrorCode.ERROR100.getCode(), "点播超时")); | 611 | msg.setData(new HookResult(ErrorCode.ERROR100.getCode(), "点播超时")); |
| 612 | - resultHolder.invokeResult(msg); | 612 | + resultHolder.invokeAllResult(msg); |
| 613 | + inviteStreamService.removeInviteInfoByDeviceAndChannel(InviteSessionType.PLAY, deviceId, channelId); | ||
| 614 | + storager.stopPlay(deviceId, channelId); | ||
| 613 | }); | 615 | }); |
| 614 | 616 | ||
| 615 | resultHolder.put(key, uuid, result); | 617 | resultHolder.put(key, uuid, result); |