91
…
content-type: image/jpeg\r\n
…
<JPEG image data>
SDP (MPEG-4/H.264 video/MJPEG)
Method: GET
URL:
http://<ip>/img/media.sdp
Return: A SDP file will be returned.
HTTP/1.0 200 OK\r\n
…
<SDP data>
Audio Upload (uploading audio streaming to the camera)
Method: POST
URL:
http://<ip>/img/g726.cgi
G.726 audio stream (16Kbps or 32Kbps,
depends on models)
URL:
http://<ip>/img/g711a.cgi
G.711 a-law audio stream (64Kbps)
URL:
http://<ip>/img/g711u.cgi
G.711 u-law audio stream (64Kbps)
Example (
client side
):
POST /IMG/g726.cgi HTTP/1.0\r\n
Host: 192.168.0.99\r\n
Return:
OK
HTTP/1.0 200 OK\r\n
Client starts to upload the audio stream.
Unauthorized
(Bad username, password)
HTTP/1.0 401 Unauthorized\r\n
RTP/RTSP
User can stream video and audio through the following URLs.
Video and audio:
rtsp://<ip>/img/media.sav
Video only:
rtsp://<ip>/img/video.sav
Audio only:
rtsp://<ip>/img/audio.sav
If the client player is QuickTime player, there are always around 3 seconds latency. If
there is not audio content in the streaming, you can use the extension parameter
“
[?|&]latency=no
” to push QuickTime player to play the streaming without any latency,
but this method causes the frame rate is not stable. Example:
rtsp://<ip>/img/video.sav?latency=no