Skip to content

Commit 753b3d2

Browse files
Merge pull request #4221 from IgorA100/patch-673844
Audio stream support for rtsp2web
2 parents a3269e6 + ffdbafd commit 753b3d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zm_monitor_rtsp2web.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ int Monitor::RTSP2WebManager::add_to_RTSP2Web() {
109109
//Assemble our actual request
110110
std::string postData = "{\"name\" : \"" + std::string(parent->Name()) + "\", \"channels\" : {"
111111
" \"0\" : {"
112-
" \"name\" : \"ch1\", \"url\" : \"" + rtsp_path + "\", \"on_demand\": true, \"debug\": false, \"status\": 0}";
112+
" \"name\" : \"ch1\", \"audio\" : true, \"url\" : \"" + rtsp_path + "\", \"on_demand\": true, \"debug\": false, \"status\": 0}";
113113
if (!parent->GetSecondPath().empty()) {
114114
postData += ", \"0\" : {"
115-
" \"name\" : \"ch2\", \"url\" : \"" + parent->GetSecondPath() + "\", \"on_demand\": true, \"debug\": false, \"status\": 0}";
115+
" \"name\" : \"ch2\", \"audio\" : true, \"url\" : \"" + parent->GetSecondPath() + "\", \"on_demand\": true, \"debug\": false, \"status\": 0}";
116116
}
117117
postData += "}" "}";
118118

0 commit comments

Comments
 (0)