mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
Tools: Refine sig sdk for demo
This commit is contained in:
parent
700186b1c8
commit
6e26da2323
1 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,7 @@ function SrsRtcSignalingParse(location) {
|
|||
query = query.replace('wss=' + wsSchema, '');
|
||||
query = query.replace('wsh=' + wsHost, '');
|
||||
query = query.replace('wsp=' + wsPort, '');
|
||||
query = query.replace('host=' + host, '');
|
||||
if (room) {
|
||||
query = query.replace('room=' + room, '');
|
||||
}
|
||||
|
@ -132,6 +133,9 @@ function SrsRtcSignalingParse(location) {
|
|||
if (query.lastIndexOf('?') === 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.
|
||||
|
|
Loading…
Reference in a new issue