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 Sep 1, 2024
2 parents 13042f1 + e4543d8 commit 5bf2432
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 196 deletions.
7 changes: 1 addition & 6 deletions src/zm_eventstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ void EventStream::processCommand(const CmdMsg *msg) {
break;
case CMD_QUIT :
Info("User initiated exit - CMD_QUIT");
zm_terminate = true;
break;
default :
// Do nothing, for now
Expand Down Expand Up @@ -686,12 +687,6 @@ void EventStream::processCommand(const CmdMsg *msg) {
//exit(-1);
}
}

// quit after sending a status, if this was a quit request
if (static_cast<MsgCommand>(msg->msg_data[0]) == CMD_QUIT) {
exit(0);
}

} // void EventStream::processCommand(const CmdMsg *msg)

bool EventStream::checkEventLoaded() {
Expand Down
2 changes: 1 addition & 1 deletion src/zm_monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ class Monitor : public std::enable_shared_from_this<Monitor> {
static_cast<int64>(std::chrono::duration_cast<Seconds>(now.time_since_epoch()).count())
-
shared_data->last_viewed_time
) > 1 ? false : true);
) > 10 ? false : true);
}
return false;
}
Expand Down
68 changes: 67 additions & 1 deletion web/skins/classic/css/base/skin.css
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ ul.nav.nav-pills.flex-column {

#mfbpanel {
width: calc(100% - 25px);
float: left;
float: left;
}

.chosen {
Expand Down Expand Up @@ -1118,6 +1118,72 @@ html::-webkit-scrollbar-thumb, div::-webkit-scrollbar-thumb, nav::-webkit-scroll
}
}

/* +++ Control button block in the Stream image*/
.block-button-center {
position: absolute;
left: 35%;
right: 35%;
top: 2px;
z-index: 10;
}

button.btn.btn-zoom-out {
padding: 0;
background-color: rgba(150,150,150,0.5);
position: absolute;
left: 3px;
top: 3px;
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-zoom-in {
padding: 0;
background-color: rgba(150,150,150,0.5);
position: absolute;
right: 3px;
top: 3px;
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-view-watch,
button.btn.btn-edit-monitor,
button.btn.btn-fullscreen {
padding: 0;
background-color: rgba(150,150,150,0.5);
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-zoom-out:focus,
button.btn.btn-zoom-in:focus,
button.btn.btn-view-watch:focus,
button.btn.btn-edit-monitor:focus {
outline: 0;
box-shadow: none;
}

button.btn.btn-zoom-out:hover,
button.btn.btn-zoom-in:hover,
button.btn.btn-edit-monitor:hover,
button.btn.btn-view-watch:hover {
background-color: darkgrey;
}
/* --- Control button block in the Stream image*/

/* +++ This block should always be located at the end! */
.hidden {
display: none;
Expand Down
62 changes: 0 additions & 62 deletions web/skins/classic/css/base/views/event.css
Original file line number Diff line number Diff line change
Expand Up @@ -355,72 +355,10 @@ svg.zones {
z-index: 1000;
}

button.btn.btn-zoom-out {
padding: 0;
background-color: rgba(150,150,150,0.5);
position: absolute;
left: 2px;
top: 2px;
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-zoom-in {
padding: 0;
background-color: rgba(150,150,150,0.5);
position: absolute;
right: 2px;
top: 2px;
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-edit-monitor {
padding: 0;
background-color: rgba(150,150,150,0.5);
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-view-watch, button.btn.btn-fullscreen, .ratioControl {
display: none;
}

.block-button-center {
position: absolute;
left: 35%;
right: 35%;
top: 2px;
z-index: 10;
}

button.btn.btn-zoom-out:focus,
button.btn.btn-zoom-in:focus,
button.btn.btn-view-watch:focus,
button.btn.btn-edit-monitor:focus {
outline: 0;
box-shadow: none;
}

button.btn.btn-zoom-out:hover,
button.btn.btn-zoom-in:hover,
button.btn.btn-edit-monitor:hover,
button.btn.btn-view-watch:hover {
background-color: darkgrey;
}

/*Video.js override*/
.vjs-tech {
pointer-events: auto;
Expand Down
64 changes: 0 additions & 64 deletions web/skins/classic/css/base/views/montage.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,34 +83,6 @@
fill: #0000FF;
}

button.btn.btn-zoom-out {
padding: 0;
background-color: rgba(150,150,150,0.5);
position: absolute;
left: 2px;
top: 2px;
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-zoom-in {
padding: 0;
background-color: rgba(150,150,150,0.5);
position: absolute;
right: 2px;
top: 2px;
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

.ratioControl{
padding: 0;
background-color: rgba(150,150,150,0.5);
Expand All @@ -124,42 +96,6 @@ button.btn.btn-zoom-in {
min-width: 130px;
}

button.btn.btn-view-watch, button.btn.btn-edit-monitor, button.btn.btn-fullscreen {
padding: 0;
background-color: rgba(150,150,150,0.5);
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

.block-button-center {
position: absolute;
left: 50px;
right: 50px;
top: 2px;
z-index: 10;
}

button.btn.btn-zoom-out:focus,
button.btn.btn-zoom-in:focus,
button.btn.btn-view-watch:focus,
button.btn.btn-fullscreen:focus,
button.btn.btn-edit-monitor:focus {
outline: 0;
box-shadow: none;
}

button.btn.btn-zoom-out:hover,
button.btn.btn-zoom-in:hover,
button.btn.btn-view-watch:hover,
button.btn.btn-fullscreen:hover,
button.btn.btn-edit-monitor:hover {
background-color: darkgrey;
}

.grid-stack-item-content.modeEditingMonitor {
cursor: crosshair;
}
Expand Down
62 changes: 0 additions & 62 deletions web/skins/classic/css/base/views/watch.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,72 +193,10 @@ body.sticky #content {
transform-origin: 100% 00%;
}

button.btn.btn-zoom-out {
padding: 0;
background-color: rgba(150,150,150,0.5);
position: absolute;
left: 2px;
top: 2px;
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-zoom-in {
padding: 0;
background-color: rgba(150,150,150,0.5);
position: absolute;
right: 2px;
top: 2px;
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-edit-monitor {
padding: 0;
background-color: rgba(150,150,150,0.5);
z-index: 10;
text-shadow:
-1px -1px 0 #575757,
1px -1px 0 #575757,
-1px 1px 0 #575757,
1px 1px 0 #575757;
}

button.btn.btn-view-watch, button.btn.btn-fullscreen, .ratioControl {
display: none;
}

.block-button-center {
position: absolute;
left: 35%;
right: 35%;
top: 2px;
z-index: 10;
}

button.btn.btn-zoom-out:focus,
button.btn.btn-zoom-in:focus,
button.btn.btn-view-watch:focus,
button.btn.btn-edit-monitor:focus {
outline: 0;
box-shadow: none;
}

button.btn.btn-zoom-out:hover,
button.btn.btn-zoom-in:hover,
button.btn.btn-edit-monitor:hover,
button.btn.btn-view-watch:hover {
background-color: darkgrey;
}

/* +++ Support for old ZoomPan algorithm */
.form-check.control-use-old-zoom-pan {
display: inline-block;
Expand Down
8 changes: 8 additions & 0 deletions web/skins/classic/views/js/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,14 @@ function initPage() {
applyMonitorControllable();
}
streamPrepareStart();

// Event listener for double click
//var elStream = document.querySelectorAll('[id ^= "liveStream"], [id ^= "evtStream"]');
var elStream = document.querySelectorAll('[id = "wrapperMonitor"]');
Array.prototype.forEach.call(elStream, (el) => {
el.addEventListener('touchstart', doubleTouch);
el.addEventListener('dblclick', doubleClickOnStream);
});
} // initPage

function watchFullscreen() {
Expand Down

0 comments on commit 5bf2432

Please sign in to comment.