Commit 38a85d432ae9bb861dbcbf090d68fb3dca0d85f6
1 parent
6c9d6f00
修复合并的bug
Showing
2 changed files
with
2 additions
and
4 deletions
src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java
| ... | ... | @@ -236,8 +236,8 @@ public class StreamInfo implements Serializable, Cloneable{ |
| 236 | 236 | } |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | - public void setRtc(String host, int port, int sslPort, String app, String stream, String callIdParam) { | |
| 240 | - String file = String.format("index/api/webrtc?app=%s&stream=%s&type=play%s", app, stream, callIdParam); | |
| 239 | + public void setRtc(String host, int port, int sslPort, String app, String stream, String callIdParam, boolean isPlay) { | |
| 240 | + String file = String.format("index/api/webrtc?app=%s&stream=%s&type=%s%s", app, stream, isPlay?"play":"push", callIdParam); | |
| 241 | 241 | if (port > 0) { |
| 242 | 242 | this.rtc = new StreamURL("http", host, port, file); |
| 243 | 243 | } | ... | ... |
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/NotifyRequestProcessor.java