修复rtmps默认端口不对导致无法推/拉流问题 (#2996)

在使用rtmps推流或者拉流时,端口被默认设置成了1935,正确的端口应该是443.
This commit is contained in:
Jovial Young
2023-11-19 14:37:04 +08:00
committed by GitHub
parent 22f5f56130
commit a13b8417e5
3 changed files with 4 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ void RtmpPlayer::play(const string &url) {
}
DebugL << host_url << " " << _app << " " << _stream_id;
uint16_t port = 1935;
uint16_t port = start_with(url, "rtmps") ? 443 : 1935;
splitUrl(host_url, host_url, port);
if (!(*this)[Client::kNetAdapter].empty()) {