优化代码调用
This commit is contained in:
@@ -141,6 +141,22 @@ public class SendRtpItem {
|
||||
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user