| | |
| | | } |
| | | }); |
| | | } else { |
| | | |
| | | sendRtpItem.setPlayType(InviteStreamType.PLAY); |
| | | String streamId = String.format("%s_%s", device.getDeviceId(), channelId); |
| | | sendRtpItem.setStreamId(streamId); |
| | | redisCatchStorage.updateSendRTPSever(sendRtpItem); |
| | | SSRCInfo ssrcInfo = playService.play(mediaServerItem, device.getDeviceId(), channelId, ssrc, ((code, msg, data) -> { |
| | | if (code == InviteErrorCode.SUCCESS.getCode()) { |
| | | hookEvent.run(code, msg, data); |
| | |
| | | errorEvent.run(code, msg, data); |
| | | } |
| | | })); |
| | | sendRtpItem.setPlayType(InviteStreamType.PLAY); |
| | | String streamId = String.format("%s_%s", device.getDeviceId(), channelId); |
| | | sendRtpItem.setStreamId(streamId); |
| | | sendRtpItem.setSsrc(ssrcInfo.getSsrc()); |
| | | redisCatchStorage.updateSendRTPSever(sendRtpItem); |
| | | |