v2.0.t6
Added live camera streaming support to the web interface for testing.
This commit is contained in:
parent
0f6e7603df
commit
78919effcf
|
@ -37,7 +37,7 @@ using namespace std;
|
|||
using namespace std::filesystem;
|
||||
using namespace std::chrono;
|
||||
|
||||
#define APP_VER "2.0.t5"
|
||||
#define APP_VER "2.0.t6"
|
||||
#define APP_NAME "Motion Watch"
|
||||
#define REC_LOG_NAME "rec_log_lines.html"
|
||||
#define DET_LOG_NAME "det_log_lines.html"
|
||||
|
|
12
src/web.cpp
12
src/web.cpp
|
@ -45,9 +45,18 @@ void genHTMLul(const string &outputDir, const string &title, shared_t *share)
|
|||
|
||||
if (exists(outputDir + "/VIDEO_TS"))
|
||||
{
|
||||
htmlText += "<h4>Live</h4>\n";
|
||||
htmlText += "<ul>\n";
|
||||
htmlText += " <li><a href='stream.html'>" + share->camName + ":live" + "</a></li>\n";
|
||||
htmlText += "</ul>\n";
|
||||
htmlText += "<h4>Motion Events</h4>\n";
|
||||
|
||||
if (!exists("stream.html"))
|
||||
{
|
||||
genHTMLvid("stream");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (auto &®Name : regNames)
|
||||
{
|
||||
if (regName.ends_with("_log.html"))
|
||||
|
@ -56,6 +65,7 @@ void genHTMLul(const string &outputDir, const string &title, shared_t *share)
|
|||
}
|
||||
else if (regName.ends_with(".html") &&
|
||||
!regName.ends_with("index.html") &&
|
||||
!regName.ends_with("stream.html") &&
|
||||
!regName.ends_with("_log_lines.html"))
|
||||
{
|
||||
// regName.substr(0, regName.size() - 5) removes .html
|
||||
|
|
Loading…
Reference in New Issue
Block a user