Per Mike S:
That's one of the ones I've been going through, but it does not
seem to mention how to supply ID/PW on-the-fly.
You may be able to include ID and Password this way:
pg 29
When MMode is set to "128" (HTTP notification)
MID : Basic authentication ID Note: 0-63 one-byte char's
MPassword : Basic authentication Password Note: 0-63 one-byte char's
&MID=userid&MPassword=userpassword
pg 30
Set?Func=ImageTransfer&Kind=1&TaskEnable=1&TCondition=4&PostEnable=1&PostIntervalPer=100
0&PostIntervalNum=1&PostNum=1&PreEnable=1&PreIntervalPer=1000&PreIntervalNum=1&PreNum=
1&TMode=16&MMode=128&MHttpHost=xxxx.xxx&MHttpPort=80&MFileName=cgi-bin/alarmget.cgi?Ta
sk=1%26CamUrl=
http://camera111.yyy.yyy.yyy/&Mode=2&MID=userid&MPassword=userpassword
=================================
Sample code I've found uses this convention:
SRC="
http://10.0.0.253:50001/ImageViewer?Mode=Motion&Resolution=320x240
&Quality=Standard&Interval=10" NAME="CameraView">
But nothing I've found uses
<FRAME
SRC="
http://xxxxxx:[email protected]:500...solution=320x240&Quality=Standard&Interval=10"
NAME="CameraView">
All the code seems predicated on the idea that the camera is
already open and the user logged in.
I'm trying to figure out how to set up a rudimentary web page
that just shows what the camera is seeing - without any login
prompt or extraneous controls/fields.... just the image. User
clicks a button, button's code opens the rudimentary page, user
sees image. But that would seem tb predicated on supplying some
authentication info to the camera.
I found what looks like your approach on pg 69
3.25 Image display (ImageViewer)
ImageViewer?Resolution=320x240&Quality=Standard&Mode=Refresh&Interval=5
Accessible for administrators and general users authorized to view
images (Includes guest users, when administrator allows guest users to
access the camera)
ImageViewer is used to display images and set various image qualities.
By setting ImageViewer parameters, you can specify to display motion or
still images, select image resolution, quality (favor motion, clarity,
etc.) and still image interval.
Question 1) Did you enable guest users in the camera settings?
=================================
Page 56 looks like it might be useful:
3.13 MotionJPEG retrieval (Real-time) (nphMotionJpeg)
Accessible for administrator and general users authorized to view motion
images (Includes guest users, when administrator allows guest users to
access the camera) Used for retrieving MotionJPEG data (motion images)
from the camera. Use a viewer that can playback buffered images on
demand to enable real-time monitoring.
nphMotionJpeg: Retrieve Motion JPEG.
Parameters
- Resolution : 192x144, 320x240, 640x480, 1280x960, 1280x1024
- Quality : Motion, Standard, Clarity
- Framerate : FPS 0.1-30
Image display procedure
(1) Start reception : Establish a connection (open the socket), and send
the following command string to HTTP port.
"GET
http://xxx.xxx.xxx.xxx:yy/nphMotionJpeg?Resolution=320x240&Quality=Standard
HTTP/1.0\r\n"
(2) Data reception
"HTTP/1.0 200 OK\r\n"
"Content-Type: multipart/x-mixed-replace; boundary=--myboundary..."
"...--myboundary.Content-type: image/jpeg..."
JPEG binary data No. 1 (Hexadecimal
notation="FFD8................................FFD9")
"...--myboundary.Content-type: image/jpeg..."
JPEG binary data No. 2 (Hexadecimal
notation="FFD8................................FFD9")
:
:
"...--myboundary.Content-type: image/jpeg..."
JPEG binary data No. N (Hexadecimal
notation="FFD8................................FFD9")
* Above mentioned Content-type: From FFD8(following image/jpeg) to
"--myboundary" (just before FFD9)
is 1 JPEG data file.
(3) Image displaying/saving
From the data above, extract JPEG data, and display the extracted
consecutively or save it. A viewer that supports the above data is
required to view images.
(4) Finish reception
End connection (close the socket).