Commit c6adfd24d93dd9881c725d22cb73b60a88ca2119

Authored by 648540858
1 parent 267085e9

修复redis开始推流的通知

src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
... ... @@ -1409,6 +1409,14 @@ public class PlayServiceImpl implements IPlayService {
1409 1409 logger.info("调用ZLM推流接口, 结果: {}", jsonObject);
1410 1410 logger.info("RTP推流成功[ {}/{} ],{}->{}, ", param.get("app"), param.get("stream"), jsonObject.getString("local_port"),
1411 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 1420 } else {
1413 1421 logger.error("RTP推流失败: {}, 参数:{}", jsonObject.getString("msg"), JSONObject.toJSONString(param));
1414 1422 if (sendRtpItem.isOnlyAudio()) {
... ...