1
0
Fork 0
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:
winlin 2021-05-04 11:27:18 +08:00
parent 700186b1c8
commit 6e26da2323

View file

@ -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.