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

Player: Change default HTTP-API port to 1985 for WebRTC

This commit is contained in:
winlin 2020-11-10 18:07:15 +08:00
parent cb4c668249
commit efca38cd89

View file

@ -5,7 +5,7 @@
* depends: jquery1.10 * depends: jquery1.10
* https://gitee.com/winlinvip/codes/rpn0c2ewbomj81augzk4y59 * https://gitee.com/winlinvip/codes/rpn0c2ewbomj81augzk4y59
* @see: http://blog.csdn.net/win_lin/article/details/17994347 * @see: http://blog.csdn.net/win_lin/article/details/17994347
* v 1.0.22 * v 1.0.23
*/ */
/** /**
@ -357,7 +357,8 @@ function parse_rtmp_url(rtmp_url) {
} else if (window.location.href.indexOf('https://') === 0) { } else if (window.location.href.indexOf('https://') === 0) {
ret.port = 443; ret.port = 443;
} else { } else {
ret.port = 80; // For WebRTC, SRS use 1985 as default API port.
ret.port = 1985;
} }
} }
} }