优化推流调用

pull/473/head
648540858 2022-05-10 09:45:09 +08:00
parent bd21d0e391
commit 93e6347f18
2 changed files with 40 additions and 0 deletions

View File

@ -76,6 +76,21 @@ public class SendRtpItem {
*/ */
private String CallId; private String CallId;
/**
* rtpptuint8_t,96
*/
private int pt = 96;
/**
* rtptruepsfalsees
*/
private boolean usePs = true;
/**
* usePs false100
*/
private boolean onlyAudio = false;
/** /**
* *
*/ */
@ -221,5 +236,27 @@ public class SendRtpItem {
this.dialog = dialog; this.dialog = dialog;
} }
public int getPt() {
return pt;
}
public void setPt(int pt) {
this.pt = pt;
}
public boolean isUsePs() {
return usePs;
}
public void setUsePs(boolean usePs) {
this.usePs = usePs;
}
public boolean isOnlyAudio() {
return onlyAudio;
}
public void setOnlyAudio(boolean onlyAudio) {
this.onlyAudio = onlyAudio;
}
} }

View File

@ -94,6 +94,9 @@ public class AckRequestProcessor extends SIPRequestProcessorParent implements In
param.put("dst_port", sendRtpItem.getPort()); param.put("dst_port", sendRtpItem.getPort());
param.put("is_udp", is_Udp); param.put("is_udp", is_Udp);
param.put("src_port", sendRtpItem.getLocalPort()); param.put("src_port", sendRtpItem.getLocalPort());
param.put("pt", sendRtpItem.getPt());
param.put("use_ps", sendRtpItem.isUsePs() ? "1" : "0");
param.put("only_audio", sendRtpItem.isOnlyAudio());
zlmrtpServerFactory.startSendRtpStream(mediaInfo, param); zlmrtpServerFactory.startSendRtpStream(mediaInfo, param);