hi, I have specific questions to ask on how zone minder does play/pause/fwd/next on event streams in the web interface. Is this the right place to ask?
Looks the buttons are defined in a block called dvrControls at line 161
asker
thanks yes, I have been looking at it. I am actually using img src="/cgi-bin/nph-zms?source=event&mode=jpeg&event=1744&frame=1&scale=100&rate=100&maxfps=5&replay=single&user=xxx&pwd=xxx" to plan and event Id (which I get from the API) and it plays the event great
now,
from what I gather, “server.com:port/?view=request&request=stream&connkey={connKey}&cmd=X” is what it is using to send commands where X = 1,2,3,4 for various functions
I'm trying to understand where connKey comes from
if its being returned in an HTTP header in the image load, then I will need to issue an HTTP command myself instead of the convenient img src
so I was wondering if there is an easier way to send commands to the current stream that is playing
and that confused me -- if that is the case, how is the command to stop/play relating to that specific stream?
I tried to do a CURL POST ?view=request(etc) with command=3 (STOP) while a stream was playing and it did not stop, which is not surprising as it can't correlate
oh
let me check something - I'm trying to trace what web console does with httpry
is what should be moving to the next event if I look at /skins/classic/views/js/event.js
but it ain't. Need to dig more
I bet there is some context stuff - for example, if 3 people log into the admin, and one person does a "next" only his stream should go to next not all (is my guess)