1
This commit is contained in:
parent
b73ff6d300
commit
0281aeafdd
@ -326,10 +326,9 @@ bool RTMPManager::is_streaming(const std::string &cam_name)
|
||||
std::string RTMPManager::get_stream_url(const std::string &cam_name)
|
||||
{
|
||||
std::string ip = get_ip_address("enP2p33s0");
|
||||
if (ip.empty()) ip = "192.168.3.211"; // fallback
|
||||
return "http://" + ip + ":1985/rtc/v1/whep/?app=record&stream=" + cam_name + "_main";
|
||||
if (ip.empty()) ip = "127.0.0.1";
|
||||
return "http://" + ip + ":1985/rtc/v1/whep/?app=camera&stream=" + cam_name + "_main&vhost=live";
|
||||
}
|
||||
|
||||
// ========== 汇总状态 ==========
|
||||
std::vector<RTMPManager::ChannelInfo> RTMPManager::get_all_channels_status()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user