| | |
| | | ZLMServerConfig mediaInfo = redisCatchStorage.getMediaInfo();
|
| | | StringBuffer content = new StringBuffer(200);
|
| | | content.append("v=0\r\n");
|
| | | content.append("o="+"00000"+" 0 0 IN IP4 "+mediaInfo.getWanIp()+"\r\n");
|
| | | content.append("o="+"00000"+" 0 0 IN IP4 "+mediaInfo.getSdpIp()+"\r\n");
|
| | | content.append("s=Play\r\n");
|
| | | content.append("c=IN IP4 "+mediaInfo.getWanIp()+"\r\n");
|
| | | content.append("c=IN IP4 "+mediaInfo.getSdpIp()+"\r\n");
|
| | | content.append("t=0 0\r\n");
|
| | | content.append("m=video "+ sendRtpItem.getLocalPort()+" RTP/AVP 96\r\n");
|
| | | content.append("a=sendonly\r\n");
|
| | |
| | | ZLMServerConfig mediaInfo = redisCatchStorage.getMediaInfo();
|
| | | StringBuffer content = new StringBuffer(200);
|
| | | content.append("v=0\r\n");
|
| | | content.append("o="+"00000"+" 0 0 IN IP4 "+mediaInfo.getWanIp()+"\r\n");
|
| | | content.append("o="+"00000"+" 0 0 IN IP4 "+mediaInfo.getSdpIp()+"\r\n");
|
| | | content.append("s=Play\r\n");
|
| | | content.append("c=IN IP4 "+mediaInfo.getWanIp()+"\r\n");
|
| | | content.append("c=IN IP4 "+mediaInfo.getSdpIp()+"\r\n");
|
| | | content.append("t=0 0\r\n");
|
| | | content.append("m=video "+ sendRtpItem.getLocalPort()+" RTP/AVP 96\r\n");
|
| | | content.append("a=sendonly\r\n");
|
| | |
| | | String username = sdp.getOrigin().getUsername();
|
| | | String addressStr = sdp.getOrigin().getAddress();
|
| | | logger.info("设备{}请求语音流,地址:{}:{},ssrc:{}", username, addressStr, port, ssrc);
|
| | | |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | } else {
|
| | | logger.warn("来自无效设备/平台的请求");
|