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

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

This commit is contained in:
winlin 2022-01-13 12:16:45 +08:00
parent db3ceb445b
commit c6c2e97189
3 changed files with 11 additions and 4 deletions

View file

@ -210,8 +210,9 @@ function SrsRtcPublisherAsync() {
} else if (window.location.href.indexOf('https://') === 0) {
ret.port = 443;
} else {
// Allow use api_port to specify the WebRTC API port.
// For WebRTC, SRS use 1985 as default API port.
ret.port = 1985;
ret.port = ret.user_query.api_port || 1985;
}
}
}