支持webrtc推流

This commit is contained in:
xia-chu
2025-09-22 20:57:48 +08:00
parent 3fb43c5fef
commit c82dd75054
2 changed files with 5 additions and 1 deletions

View File

@@ -42,6 +42,9 @@ int domain(const string &file, const string &url) {
// 根据url获取媒体协议类型注意大小写 [AUTO-TRANSLATED:3cd6622a]
// Get the media protocol type based on the URL, note the case
auto schema = strToLower(findSubString(url.data(), nullptr, "://").substr(0, 4));
if (schema == "webr") {
schema = "rtsp";
}
// 只开启推流协议对应的转协议 [AUTO-TRANSLATED:1c4975ae]
// Only enable the protocol conversion corresponding to the push protocol