Stream Publish
Host Port http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":19355,"nProtolType":3},"nChannel":0}]}}
wHostPort [0,65535]
Stream Name http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":
[{"stMaster":{"wHostPort":19355,"nProtolType":3,"szStreamName":"live/1213"},
"nChannel":0}]}}
szStreamName user-defined
User Name http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":19355,"nProtolType":3,"szUserName":"123"},"nChannel":0}]}}
szUserName user-defined
Password http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":19355,"nProtolType":3,"szPassword":"123"},"nChannel":0}]}}
szPassword user-defined
SrtKey (SRT Effectie) http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":19355,"nProtolType":3,"szSrtKey":"0123456789"},"nChannel":0}]}}
szSrtKey user-defined
SrtKeyLen (SRTEffectie) http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":
{"wHostPort":19355,"nProtolType":3,"wSrtKeyLen":"0"},"nChannel":0}]}}
wSrtKeyLen [0-32]
(RTP) Multicast Streaming
RTP Multicast
Get rtp multicast parameters
Code http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"StreamRTPMulticast":{"nChannel":-1}}}
Set rtp multicast parameters
Code http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stSlave":
{"nProtolType":0,"bEnable":0,"wMultiCastPort":4002, "szMultiCastUrl":"224.1.2.3"},"stMaster":
{"nProtolType":1,"bEnable":0,"wMultiCastPort":4000, "szMultiCastUrl":"224.1.2.3"},"nChannel":0}]}}
NOTE: When modifying one param you should take along bEnable and awMultiCastPort. Otherwise, it will be set to 0. Suggesting that when
setting env, you can distinguish the stMaster and stSlave.
RTP Multicast Settings
RTP Multicast Settings
Function Code Command Setting
Enable http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stMaster":
{"bEnable":1,"wMultiCastPort":4004},"nChannel":0}]}}
bEnable 0: off
1: on
Protol Type http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stMaster":
{"bEnable":1,"nProtolType":1,"wMultiCastPort":4004},"nChannel":0}]}}
nProtolType 0: RTP
1: TS
Multicast
Address
http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stMaster":
{"bEnable":0,"szMultiCastUrl":"224.1.2.23","wMultiCastPort":4004},"nChannel":0}]}}
SzMultiCastUrl 224.0.0.0~
255.255.255.0
Multicast Port http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stMaster":
{"bEnable":1,"wMultiCastPort":4004},"nChannel":0}]}}
wMultiCastPort Even [0, 65535]
Camera Settings
Video Parameters
Get video parameters
Code http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"VideoParam":{"nChannel":-1}}}
Set video parameters
Focus
Function Code Command Setting
Focus Mode http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":
[{"stAF":{"emAFMode":2},"nChannel":0}]}}
emAFMode 2:
3:
4:
Auto
Manual
OnePush
81