Commit c6adfd24d93dd9881c725d22cb73b60a88ca2119
1 parent
267085e9
修复redis开始推流的通知
Showing
1 changed file
with
8 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
| @@ -1409,6 +1409,14 @@ public class PlayServiceImpl implements IPlayService { | @@ -1409,6 +1409,14 @@ public class PlayServiceImpl implements IPlayService { | ||
| 1409 | logger.info("调用ZLM推流接口, 结果: {}", jsonObject); | 1409 | logger.info("调用ZLM推流接口, 结果: {}", jsonObject); |
| 1410 | logger.info("RTP推流成功[ {}/{} ],{}->{}, ", param.get("app"), param.get("stream"), jsonObject.getString("local_port"), | 1410 | logger.info("RTP推流成功[ {}/{} ],{}->{}, ", param.get("app"), param.get("stream"), jsonObject.getString("local_port"), |
| 1411 | sendRtpItem.isTcpActive()?"被动发流": param.get("dst_url") + ":" + param.get("dst_port")); | 1411 | sendRtpItem.isTcpActive()?"被动发流": param.get("dst_url") + ":" + param.get("dst_port")); |
| 1412 | + if (sendRtpItem.getPlayType() == InviteStreamType.PUSH && correlationInfo instanceof ParentPlatform) { | ||
| 1413 | + ParentPlatform platform = (ParentPlatform)correlationInfo; | ||
| 1414 | + MessageForPushChannel messageForPushChannel = MessageForPushChannel.getInstance(0, sendRtpItem.getApp(), sendRtpItem.getStream(), | ||
| 1415 | + sendRtpItem.getChannelId(), platform.getServerGBId(), platform.getName(), userSetting.getServerId(), | ||
| 1416 | + sendRtpItem.getMediaServerId()); | ||
| 1417 | + messageForPushChannel.setPlatFormIndex(platform.getId()); | ||
| 1418 | + redisCatchStorage.sendPlatformStartPlayMsg(messageForPushChannel); | ||
| 1419 | + } | ||
| 1412 | } else { | 1420 | } else { |
| 1413 | logger.error("RTP推流失败: {}, 参数:{}", jsonObject.getString("msg"), JSONObject.toJSONString(param)); | 1421 | logger.error("RTP推流失败: {}, 参数:{}", jsonObject.getString("msg"), JSONObject.toJSONString(param)); |
| 1414 | if (sendRtpItem.isOnlyAudio()) { | 1422 | if (sendRtpItem.isOnlyAudio()) { |