1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Support api to specify the WebRTC API port. v4.0.225

This commit is contained in:
winlin 2022-01-13 13:32:14 +08:00
parent c6c2e97189
commit 73d0ce1cee
3 changed files with 17 additions and 11 deletions

View file

@ -37,10 +37,6 @@ function user_extra_params(query, params, rtc) {
continue;
}
if (!rtc && key === 'api_port') {
continue;
}
if (query[key]) {
queries.push(key + '=' + query[key]);
}
@ -94,7 +90,7 @@ function build_default_flv_url() {
function build_default_rtc_url(query) {
// The format for query string to overwrite configs of server.
console.log('?eip=x.x.x.x to overwrite candidate. 覆盖服务器candidate(外网IP)配置');
console.log('?api_port=x to overwrite WebRTC API(1985).');
console.log('?api=x to overwrite WebRTC API(1985).');
console.log('?schema=http|https to overwrite WebRTC API protocol.');
var server = (!query.server)? window.location.hostname:query.server;