Commit f68f6d20e000b9e1926acb43999a2e6e3333cc4c
1 parent
db2ccfed
修复流注销想上级发送bye后未清理缓存的问题
Showing
2 changed files
with
2 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
| @@ -403,6 +403,7 @@ public class ZLMHttpHookListener { | @@ -403,6 +403,7 @@ public class ZLMHttpHookListener { | ||
| 403 | try { | 403 | try { |
| 404 | if (platform != null) { | 404 | if (platform != null) { |
| 405 | commanderFroPlatform.streamByeCmd(platform, sendRtpItem); | 405 | commanderFroPlatform.streamByeCmd(platform, sendRtpItem); |
| 406 | + redisCatchStorage.deleteSendRTPServer(platformId, sendRtpItem.getChannelId(), sendRtpItem.getCallId(), sendRtpItem.getStreamId()); | ||
| 406 | } else { | 407 | } else { |
| 407 | cmder.streamByeCmd(device, sendRtpItem.getChannelId(), param.getStream(), sendRtpItem.getCallId()); | 408 | cmder.streamByeCmd(device, sendRtpItem.getChannelId(), param.getStream(), sendRtpItem.getCallId()); |
| 408 | } | 409 | } |
src/main/java/com/genersoft/iot/vmp/service/impl/MediaServerServiceImpl.java
| @@ -742,4 +742,5 @@ public class MediaServerServiceImpl implements IMediaServerService { | @@ -742,4 +742,5 @@ public class MediaServerServiceImpl implements IMediaServerService { | ||
| 742 | result.setGbSend(redisCatchStorage.getGbSendCount(mediaServerItem.getId())); | 742 | result.setGbSend(redisCatchStorage.getGbSendCount(mediaServerItem.getId())); |
| 743 | return result; | 743 | return result; |
| 744 | } | 744 | } |
| 745 | + | ||
| 745 | } | 746 | } |