[1078] 修复webrtc地址
This commit is contained in:
@@ -182,7 +182,8 @@ public class StreamInfo implements Serializable, Cloneable{
|
|||||||
if (callIdParam != null) {
|
if (callIdParam != null) {
|
||||||
callIdParam = Objects.equals(callIdParam, "") ? callIdParam : callIdParam.replace("?", "&");
|
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) {
|
if (port > 0) {
|
||||||
this.rtc = new StreamURL("http", host, port, file);
|
this.rtc = new StreamURL("http", host, port, file);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public class Jt808Decoder extends ByteToMessageDecoder {
|
|||||||
if (decode != null) {
|
if (decode != null) {
|
||||||
out.add(decode);
|
out.add(decode);
|
||||||
}
|
}
|
||||||
|
buf.release();
|
||||||
} finally {
|
} finally {
|
||||||
in.skipBytes(in.readableBytes());
|
in.skipBytes(in.readableBytes());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ public abstract class Re {
|
|||||||
session.register(header.getPhoneNumber(), (int) header.getVersion(), header);
|
session.register(header.getPhoneNumber(), (int) header.getVersion(), header);
|
||||||
}
|
}
|
||||||
Rs rs = decode0(buf, header, session);
|
Rs rs = decode0(buf, header, session);
|
||||||
buf.release();
|
|
||||||
Rs rsHand = handler(header, session, service);
|
Rs rsHand = handler(header, session, service);
|
||||||
if (rs == null && rsHand != null) {
|
if (rs == null && rsHand != null) {
|
||||||
rs = rsHand;
|
rs = rsHand;
|
||||||
|
|||||||
Reference in New Issue
Block a user