Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ZoneMinder/zoneminder
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Oct 10, 2024
2 parents 0019857 + f1a72c9 commit 2be8cf7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions src/zm_monitor_onvif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ void Monitor::ONVIF::WaitForMessage() {
if (last_value.find("false") == 0) {
Info("Triggered off ONVIF");
alarms.erase(last_topic);
if(alarms.empty()) {
Debug(1, "ONVIF Alarms Empty: Alarms count is %zu, alarmed is %s", alarms.size(), alarmed ? "true": "false");
Debug(1, "ONVIF Alarms Empty: Alarms count is %zu, alarmed is %s, empty is %d ", alarms.size(), alarmed ? "true": "false", alarms.empty());
if (alarms.empty()) {
alarmed = false;
}
if (!parent->Event_Poller_Closes_Event) { //If we get a close event, then we know to expect them.
Expand Down Expand Up @@ -284,13 +284,15 @@ int SOAP_ENV__Fault(struct soap *soap, char *faultcode, char *faultstring, char
#endif

void Monitor::ONVIF::SetNoteSet(Event::StringSet &noteSet) {
std::string note = "";
#ifdef WITH_GSOAP
if (alarms.empty()) return;

std::string note = "";
for (auto it = alarms.begin(); it != alarms.end(); ++it) {
note = it->first + "/" + it->second;
noteSet.insert(note);
}
#endif
return ;
return;
}

4 changes: 2 additions & 2 deletions web/skins/classic/css/base/skin.css
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ button.btn.btn-zoom-out {
position: absolute;
left: 3px;
top: 3px;
z-index: 10;
z-index: 20;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
Expand All @@ -1166,7 +1166,7 @@ button.btn.btn-zoom-in {
position: absolute;
right: 3px;
top: 3px;
z-index: 10;
z-index: 20;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
Expand Down
4 changes: 2 additions & 2 deletions web/skins/classic/views/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
}

$video_tag = ($codec == 'MP4') ||
((false !== strpos($Event->DefaultVideo(), 'h264')) || (false !== strpos($Event->DefaultVideo(), 'av1')) && ($codec === 'auto'));
((false !== strpos($Event->DefaultVideo(), 'h264') || false !== strpos($Event->DefaultVideo(), 'av1')) && ($codec === 'auto'));

// videojs zoomrotate only when direct recording
$Zoom = 1;
Expand Down Expand Up @@ -342,7 +342,7 @@
function($r){return $r >= 0 ? true : false;}
))) ?>], "plugins": { "zoomrotate": { "zoom": "<?php echo $Zoom ?>"}}}'
>
<source src="<?php echo $Event->getStreamSrc(array('mode'=>'mpeg','format'=>'h264'),'&amp;'); ?>" type="video/mp4">
<source src="<?php echo $Event->getStreamSrc(array('mode'=>'mp4','format'=>'h264'),'&amp;'); ?>" type="video/mp4">
<track id="monitorCaption" kind="captions" label="English" srclang="en" src='data:plain/text;charset=utf-8,"WEBVTT\n\n 00:00:00.000 --> 00:00:01.000 ZoneMinder"' default/>
Your browser does not support the video tag.
</video>
Expand Down

0 comments on commit 2be8cf7

Please sign in to comment.