Tools: Refine sig sdk for demo
This commit is contained in:
parent
700186b1c8
commit
6e26da2323
|
|
@ -119,6 +119,7 @@ function SrsRtcSignalingParse(location) {
|
||||||
query = query.replace('wss=' + wsSchema, '');
|
query = query.replace('wss=' + wsSchema, '');
|
||||||
query = query.replace('wsh=' + wsHost, '');
|
query = query.replace('wsh=' + wsHost, '');
|
||||||
query = query.replace('wsp=' + wsPort, '');
|
query = query.replace('wsp=' + wsPort, '');
|
||||||
|
query = query.replace('host=' + host, '');
|
||||||
if (room) {
|
if (room) {
|
||||||
query = query.replace('room=' + room, '');
|
query = query.replace('room=' + room, '');
|
||||||
}
|
}
|
||||||
|
|
@ -132,6 +133,9 @@ function SrsRtcSignalingParse(location) {
|
||||||
if (query.lastIndexOf('?') === query.length - 1) {
|
if (query.lastIndexOf('?') === query.length - 1) {
|
||||||
query = query.substr(0, query.length - 1);
|
query = query.substr(0, query.length - 1);
|
||||||
}
|
}
|
||||||
|
if (query.lastIndexOf('&') === query.length - 1) {
|
||||||
|
query = query.substr(0, query.length - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Regenerate the host of websocket.
|
// Regenerate the host of websocket.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user