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:
parent
db3ceb445b
commit
c6c2e97189
3 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue