| | |
| | | |
| | | } |
| | | |
| | | public static SendRtpItem getInstance(String app, String stream, String ssrc, String dstIp, Integer dstPort, boolean tcp, int sendLocalPort, Integer pt) { |
| | | SendRtpItem sendRtpItem = new SendRtpItem(); |
| | | sendRtpItem.setApp(app); |
| | | sendRtpItem.setStream(stream); |
| | | sendRtpItem.setSsrc(ssrc); |
| | | sendRtpItem.setTcp(tcp); |
| | | sendRtpItem.setLocalPort(sendLocalPort); |
| | | sendRtpItem.setIp(dstIp); |
| | | sendRtpItem.setPort(dstPort); |
| | | if (pt != null) { |
| | | sendRtpItem.setPt(pt); |
| | | } |
| | | |
| | | return sendRtpItem; |
| | | } |
| | | |
| | | public String getIp() { |
| | | return ip; |
| | | } |