优化推流结束后发送BYE

This commit is contained in:
648540858
2024-04-07 20:25:44 +08:00
parent 7d53009987
commit aeb75c0df1
4 changed files with 14 additions and 24 deletions

View File

@@ -516,8 +516,11 @@ public class ZLMHttpHookListener {
if (sendRtpItem.getApp().equals(param.getApp())) {
logger.info(sendRtpItem.toString());
if (userSetting.getServerId().equals(sendRtpItem.getServerId())) {
MessageForPushChannel messageForPushChannel = MessageForPushChannel.getInstance(0,
sendRtpItem.getApp(), sendRtpItem.getStream(), sendRtpItem.getChannelId(),
sendRtpItem.getPlatformId(), null, userSetting.getServerId(), param.getMediaServerId());
// 通知其他wvp停止发流
// redisCatchStorage.sendRtp
redisCatchStorage.sendPushStreamClose(messageForPushChannel);
}else {
String platformId = sendRtpItem.getPlatformId();
ParentPlatform platform = storager.queryParentPlatByServerGBId(platformId);