mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-16 10:37:49 +08:00
[1078] 修复webrtc地址
This commit is contained in:
parent
d40bc5a034
commit
5874d4d1fa
@ -182,7 +182,8 @@ public class StreamInfo implements Serializable, Cloneable{
|
||||
if (callIdParam != null) {
|
||||
callIdParam = Objects.equals(callIdParam, "") ? callIdParam : callIdParam.replace("?", "&");
|
||||
}
|
||||
String file = String.format("%s/%s?type=%s%s", app, stream, isPlay?"play":"push", callIdParam);
|
||||
// String file = String.format("%s/%s?type=%s%s", app, stream, isPlay?"play":"push", callIdParam);
|
||||
String file = String.format("index/api/webrtc?app=%s&stream=%s&type=%s%s", app, stream, isPlay?"play":"push", callIdParam);
|
||||
if (port > 0) {
|
||||
this.rtc = new StreamURL("http", host, port, file);
|
||||
}
|
||||
|
||||
@ -88,6 +88,7 @@ public class Jt808Decoder extends ByteToMessageDecoder {
|
||||
if (decode != null) {
|
||||
out.add(decode);
|
||||
}
|
||||
buf.release();
|
||||
} finally {
|
||||
in.skipBytes(in.readableBytes());
|
||||
}
|
||||
|
||||
@ -28,7 +28,6 @@ public abstract class Re {
|
||||
session.register(header.getPhoneNumber(), (int) header.getVersion(), header);
|
||||
}
|
||||
Rs rs = decode0(buf, header, session);
|
||||
buf.release();
|
||||
Rs rsHand = handler(header, session, service);
|
||||
if (rs == null && rsHand != null) {
|
||||
rs = rsHand;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user