Page 1 of 1

RC2 bug - playback of event from browser does not stop

Posted: Tue Nov 13, 2007 12:30 am
by RoundSparrow
A bit hard for me to describe this given I am still learning the ZoneMinder terminology. I have 1.22 setup on a second system and it does not behave this way, so I am considering it a bug.

Bug
========
When I click to see the playback of a recoreded motion event, it seems to play it - but also keep playing _other_ events. So it doesn't stop at the end of the event, it goes on to play all the following events. Say I have events 1,2,3. If I play 1, it automatically plays all 3 in series with no pause.

The link calls
/zm/index.php?view=event&eid=1

The progress bar at the bottom goes from left to right... but keeps playing event #2 and #3 even after it reaches the right side of the progress bar.


Other Info
==========

I'm on latest Firefox browser, from a remote machine over LAN. I noticed this problem also with RC1, but didn't report it as I figured it was an obvious problem.

Posted: Tue Nov 13, 2007 12:37 pm
by zoneminder
Technically this isn't a bug as such. More a case of indecision on my part on how to do it.

There are three event replay modes you can have which are defined in zm_event.h

Code: Select all

class EventStream : public StreamBase
{
public:
    typedef enum { MODE_SINGLE, MODE_ALL, MODE_ALL_GAPLESS } StreamMode;

protected:
The first plays just the single event you have selected, the second plays subsequent events but leaves a real-time gap between them representing the actual time difference between the end and start times of the events. The third does what you have observed and plays subsequent events with gaps. Ordinarily I think this is what you would want for long events such as those in 'record' or 'mocord' modes but perhaps not in short 'modect' style ones.

I think I will make it a configurable option but for now you can change it in zms.cpp by finding and modifiying the line

Code: Select all

stream.setStreamMode( EventStream::MODE_ALL_GAPLESS );

Posted: Tue Nov 13, 2007 4:27 pm
by RoundSparrow
Thanks for the response.

As you suggest, I encourage the option - especially since the default behavior changed from 1.22 to 1.23.

Thanks again.

Posted: Tue Nov 13, 2007 7:41 pm
by ammaross
Yes, allowing personal preference is ideal, however I do like your choice of default. :wink: