401
C. Decide device access username and
password
Use base64 encryption to encode
username and password Ex: “admin:admin”
to
“YWRtaW46YWRtaW4=”.
D. Get
viewer
port
corresponding
to
video
format.
Ex:
for MPEG4 video port
http://<servername>/cgi-
bin/view/param?action=list&group=General.System.HTTPViewerPort for MJPEG video port
http://<servername>/cgi-
bin/view/param?action=list&group=General.System.HTTPViewerPort2
E. Open
socket
(device
IP:
viewer
port)
to send video request command and receive
video frames.
Ex:
http://<servername>:<videoport>/video.
mp4
http://<servername>:<videoport>/video.
mjpg
Only MPEG4 support audio streaming. Use content type to distinguish between audio and video
frames.