优化点播后截图以及截图的展示

This commit is contained in:
648540858
2023-03-22 09:52:23 +08:00
parent df9f6a8927
commit 66234dc288
4 changed files with 13 additions and 5 deletions

View File

@@ -238,7 +238,9 @@ public class StreamInfo implements Serializable, Cloneable{
}
public void setRtc(String host, int port, int sslPort, String app, String stream, String callIdParam) {
callIdParam = Objects.equals(callIdParam, "") ? callIdParam : callIdParam.replace("?", "&");
if (callIdParam != null) {
callIdParam = Objects.equals(callIdParam, "") ? callIdParam : callIdParam.replace("?", "&");
}
String file = String.format("index/api/webrtc?app=%s&stream=%s&type=play%s", app, stream, callIdParam);
if (port > 0) {
this.rtc = new StreamURL("http", host, port, file);