jzaw: Thanks for your help yesterday! It works. Problem is that I need to get hold of an auth-token. Any tip on how I do that?
So it's a hash ... of username/password/timestamp and auth_hash_secret?
Lurchy
sigh....frustrating here
selstam
If it's easy it's not worth doing? :)
asker joined the channel
asker
selstam - what are you trying to do?
selstam
Need to grab latest image captured per camera from zm.
asker
you don't need auth token
replace with &user=xxxx&pass=yyyy
(forget if its pass, passwd, or password)
selstam
That'll send username and password in clear text. Don't really want that. :)
asker
ah
well, there are two ways
a) You look at how the hash is computed and compute it yourself - its not hard
selstam
Nope, just got it. :)
asker
b) You do a POST login to ZM, get to a streaming page url and screen scrape the auth token
you got it?
selstam
It's and md5-hash of a concat string of AUTH_HASH_SECRET+user+pass+timestamp
asker
ummmm
isnt there an IP there too?
its the IP that ZM sees of your request
selstam
Ah, yes, it is.
Lurchy
new install....but cannot capture stream in ZM
asker
and therein lies the problem
Lurchy
here...
asker
you need to make sure the IP you use is the IP ZM sees - not always easy
Lurchy
what does "unable determine arp path, tatus is 127" mean???
status
selstam
I think it's good enough for me though since I can always predict what IP to use. Only problem I can see with that is if you're behind a reverse proxy on the remote side.
asker
gak. What are you trying to do ? probe ?
Lurchy
yes
asker
selstam - right
once you create the function would you mind sending me the exact computation that works? I've looked at it, but never tried
Lurchy - probe I think is not meant for network cameras
Lurchy
ok
selstam
asker: Sure! Give me a sec
asker
I'll add it to zmNinja if you don't mind if it works
Lurchy
when I try to view cameras I have created....I get green source...but when I try to veiw stream all I get it blank.....blue screen
asker
blue screen -- hmm
Lurchy
not a BSOD...just blue screen when trying to monitor source
asker
I've gotta run - will be in on monday, but this is usually a case of wrong parameters in config
make sure you have the dimensions correct, color depth correct
what is the URL and what source are you using ? remote/ffmpeg?