| | |
| | | } |
| | | |
| | | @Override |
| | | public void startSendRtpStreamHand(SendRtpItem sendRtpItem, ParentPlatform parentPlatform, |
| | | public void startSendRtpStreamHand(SendRtpItem sendRtpItem, Object correlationInfo, |
| | | JSONObject jsonObject, Map<String, Object> param, CallIdHeader callIdHeader) { |
| | | if (jsonObject == null) { |
| | | logger.error("RTP推流失败: 请检查ZLM服务"); |
| | |
| | | } |
| | | } else { |
| | | // 向上级平台 |
| | | if (correlationInfo instanceof ParentPlatform) { |
| | | try { |
| | | ParentPlatform parentPlatform = (ParentPlatform)correlationInfo; |
| | | commanderForPlatform.streamByeCmd(parentPlatform, callIdHeader.getCallId()); |
| | | } catch (SipException | InvalidArgumentException | ParseException e) { |
| | | logger.error("[命令发送失败] 国标级联 发送BYE: {}", e.getMessage()); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void talkCmd(Device device, String channelId, MediaServerItem mediaServerItem, String stream, AudioBroadcastEvent event) { |