diff --git a/src/zm_packetqueue.cpp b/src/zm_packetqueue.cpp index e6c0777f2b..467b26580b 100644 --- a/src/zm_packetqueue.cpp +++ b/src/zm_packetqueue.cpp @@ -334,15 +334,11 @@ void PacketQueue::clearPackets(const std::shared_ptr &add_packet) { } delete lp; -#if 0 - // There are no threads that follow analysis thread. So there cannot be an it pointing here - // event writing thread technically follows, but packets are copied out of queue if (is_there_an_iterator_pointing_to_packet(zm_packet)) { - if (pktQueue.begin() == next_front) - Warning("Found iterator at beginning of queue. Some thread isn't keeping up"); + Debug(3, "Foudn iterator Counted %d video packets. Which would leave %d in packetqueue tail count is %d", + video_packets_to_delete, packet_counts[video_stream_id]-video_packets_to_delete, tail_count); break; } -#endif if (zm_packet->packet->stream_index == video_stream_id) { keyframe_interval_count++; diff --git a/web/skins/classic/views/js/monitor.js b/web/skins/classic/views/js/monitor.js index 51722b0ecb..8a2e344555 100644 --- a/web/skins/classic/views/js/monitor.js +++ b/web/skins/classic/views/js/monitor.js @@ -393,6 +393,9 @@ function initPage() { } // end if ZM_OPT_USE_GEOLOCATION updateLinkedMonitorsUI(); + + // Setup the thumbnail video animation + if (!isMobile()) initThumbAnimation(); } // end function initPage() function ll2dms(input) { diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index 706d0e2a40..f4c0820bc0 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -1300,6 +1300,34 @@ class="nav-link" ); echo htmlSelect('newMonitor[DefaultCodec]', $codecs, $monitor->DefaultCodec()); ?> +
  • +Type()=='WebSite' or ($monitor->CaptureFPS() && $monitor->Capturing() != 'None'); + $options = array(); + + $ratio_factor = $monitor->ViewWidth() ? $monitor->ViewHeight() / $monitor->ViewWidth() : 1; + $options['width'] = ZM_WEB_LIST_THUMB_WIDTH; + $options['height'] = ZM_WEB_LIST_THUMB_HEIGHT ? ZM_WEB_LIST_THUMB_HEIGHT : ZM_WEB_LIST_THUMB_WIDTH*$ratio_factor; + $options['scale'] = $monitor->ViewWidth() ? intval(100*ZM_WEB_LIST_THUMB_WIDTH / $monitor->ViewWidth()) : 100; + $options['mode'] = 'jpeg'; + $options['frames'] = 1; + + $stillSrc = $monitor->getStreamSrc($options); + $streamSrc = $monitor->getStreamSrc(array('scale'=>$options['scale']*5)); + + $thmbWidth = ( $options['width'] ) ? 'width:'.$options['width'].'px;' : ''; + $thmbHeight = ( $options['height'] ) ? 'height:'.$options['height'].'px;' : ''; + + $imgHTML = '
    ' : '>'; + $imgHTML .= '
    '; + echo $imgHTML; +?> +