PTZ Control Commands  

  Command    Values    Notes    Sample  
 left_start  byValue: 0-100  Used to control the speed of PTZ  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"left_start","byValue":50}}} 
 left_stop 
 Stops PTZ movement to the left  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"left_stop"}}} 
 leftup_start  byValue: 0-100  Starts PTZ movement to the upper left  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"leftup_start","byValue":50}}} 
 leftup_stop 
 Stops PTZ movement to the upper left  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"leftup_stop"}}} 
 leftdown_start  byValue: 0-100  Starts PTZ movement to the lower left  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"leftdown_start","byValue":50}}} 
 leftdown_stop 
 Stops PTZ movement to the lower left  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"leftdown_stop"}}} 
 right_start  byValue: 0-100  Starts PTZ movement to the right  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"right_start","byValue":50}}} 
 right_stop 
 Stops PTZ movement to the right  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"right_stop"}}} 
 rightup_start  byValue: 0-100  Starts PTZ movement to the upper right  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"rightup_start","byValue":50}}} 
 rightup_stop 
 Stops PTZ movement to the upper right  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"rightup_stop"}}} 
 rightdown_start  byValue: 0-100  Starts PTZ movement to the lower right  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"rightdown_start","byValue":50}}} 
 rightdown_stop 
 Stops PTZ movement to the lower right  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"rightdown_stop"}}} 
 up_start  byValue: 0-100  Starts PTZ movement upwards  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"up_start","byValue":50}}} 
 up_stop 
 Stops PTZ movement upwards  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"up_stop"}}} 
 down_start 
 byValue: 0-100 
 Starts PTZ movement downwards  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"down_start","byValue":50}}} 
 down_stop 
 Stops PTZ movement downwards  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"down_stop"}}} 
 nPTZSpeed  0: Slow
 1: High 
 Sets the PTZ speed  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"PTZSpeed":{"nPTZSpeed":1}}} 
 bSpeedByZoom  1: on
 0: off 
 Controls PTZ speed by zoom level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"ArmPtz":{"bSpeedByZoom":0}}} 
 nZoomSpeed  0 - 7  Sets zoom speed  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"ArmPtz":{"nZoomSpeed":0}}} 
 nPresetPanSpeed  0 - 24  Sets preset pan speed  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"ArmPtz":{"nPresetPanSpeed":0}}} 
 nPresetTiltSpeed  0 - 20  Sets preset tilt speed  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"ArmPtz":{"nPresetTiltSpeed":0}}} 
 nPresetZoomSpeed  0 - 7  Sets preset zoom speed  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"ArmPtz":{"nPresetZoomSpeed":0}}} 

  Focus & zoom Commands  

  Command    Values    Notes    Sample  
 zoomadd_start  byValue: 0-254  Starts zooming in  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"zoomadd_start","byValue":0}}} 
 zoomadd_stop  byValue: 0  Stops zooming in  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"zoomadd_stop","byValue":0}}} 
 zoomdec_start  byValue: 0-254  Starts zooming out  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"zoomdec_start","byValue":0}}} 
 zoomdec_stop  byValue: 0  Stops zooming out  http://192.168..5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"zoomdec_stop","byValue":0}}} 
 focusadd_start  byValue: 0-254  Starts focusing nearer  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"focusadd_start","byValue":0}}} 
 focusadd_stop  byValue: 0  Stops focusing nearer  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"focusadd_stop","byValue":0}}} 
 focusdec_start 
 byValue: 0-254 
 Starts focusing farther  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"focusdec_start","byValue":0}}} 
 focusdec_stop  byValue: 0
 Stops focusing farther  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"focusdec_stop","byValue":0}}} 
 emAFMode  2: Auto
3: Manual
 4: OnePush 
 Sets the focus mode  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stAF":{"emAFMode":3},"nChannel":0}]}} 
 emAFZone

 0: Front Focus
 1: Back Focus 

 2: Meeting 

 3: Education Tracking 

 4: Moving Objects 

 5: Center Focus 

 Sets the AF focus zone

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stAF":{"emAFZone":1},"nChannel":0}]}} 

 nSensitivity 

 1: High 

 2: Middle 

 3: Low 

 Sets the AF sensitivity 

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stAF":{"nSensitivity":1},"nChannel":0}]}} 

  Preset Commands  

  Command    Values    Notes    Sample  
 preset_set 
 byValue: 0-254 
 Sets a preset position  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"preset_set","byValue":0}}} 
 preset_call  byValue: 0-254  Calls a preset position  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"preset_call","byValue":0}}} 
 preset_clean  byValue: 0-254  Cleans a preset position  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"PtzCtrl":{"nChanel":0,"szPtzCmd":"preset_clean","byValue":0}}} 

  Audio Settings  

  Command    Values    Notes    Sample  
 bEnable  0: off
 1: on 
 Enables or disables audio  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"Audio":{"bEnable":1}}} 
 nAEncType  6: Mp3AAC
 7: G.711A 
 Sets the audio encoding type  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"Audio":{"nAEncType":7}}} 
 nSampleRate  16000
32000
44100
 48000 
 Sets the audio sample rate  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"Audio":{"nSampleRate":44100}}} 
 nSampleBits  16  Sets the audio sample bits  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"Audio":{"nSampleBits":16}}} 
 nBitRate  32
48
64
96
 128 
 Sets the audio bit rate  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"Audio":{"nBitRate":96}}} 
 nChannel  1: Mono
 2: Stereo 
 Sets the audio channel mode  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"Audio":{"nChannel":2}}} 
 nInpVolume  1-10  Sets the input volume level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"Audio":{"nInpVolume":5}}} 

  Video Encoder Settings  

  Command    Values    Notes    Sample  
 emVideoCodec  5: H.264
 7: H.265 (BP profile only) 
 Sets the video compression format  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"emVideoCodec":5},"nChannel":0}]}} 
 byProfile  0: BP
1: MP
 2: HP 
 Sets the video profile  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"byProfile":0},"nChannel":0}]}} 
 emImageSize  5: 1920x1080
4: 1280x720
9: 640x480
27: 320x180
 26: 640x360 
 Sets the video image size  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"emImageSize":4},"nChannel":0}]}} 
 emBitRateCtrl  0: CBR
 1: VBR 
 Sets the video bitrate control mode  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"emBitRateCtrl":1},"nChannel":0}]}} 
 byImageQuality  0: worst quality
1: between
2: between
3: between
4: between
 5: Best quality 
 Sets the image quality level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"byImageQuality":5},"nChannel":0}]}} 
 dwMaxBitRate  [64 - 40960]  Sets the maximum bit rate  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"dwMaxBitRate":200},"nChannel":0}]}} 
 nFrameRate  [5 - 60]  Sets the frame rate  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"nFrameRate":25},"nChannel":0}]}} 
 nIFrameInterval  [1 - 300]  Sets the interval between I-frames  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"nIFrameInterval":70},"nChannel":0}]}} 
 byIFrameMinQP  [10 - 51]  Sets the minimum QP for I-frames  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"byIFrameMinQP":70},"nChannel":0}]}} 
 szStreamName  user-defined  Sets the stream name  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoEncode":[{"stMaster":{"szStreamName":"live/av01"},"nChannel":0}]}} 

  Video Streaming  

  Command    Values    Notes    Sample  
 Get Stream Publish Parameters  nChannel: -1  Retrieves the stream publish parameters  http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"StreamPublish":{"nChannel":-1}}} 
 -  See below  Set all Stream Publish Parameters in one go
 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stSlave": {"wHostPort":1935,"szHostUrl":"192.168.5.11", "nProtolType":2,szStreamName":"live/ av1","bEnable":0,"nAbProtolMask":1,"szSrtKey":"","wSrtKeyLen":0,"szUserName":"","szPassword":""},”stMaster”: {"wHostPort":1935, "szHostUrl":"192.168.5.11",”nProtolType":3,"szStreamName":"live/av0","bEnable":0, "nAbProtolMask":1,"szSrtKey":"1111111111","wSrtKeyLen":0,"szUserName":"", "szPassword":""},"nChannel":0}]}} 
  bEnable   0: off
 1: on 
 Enables or disables the stream  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":{"wHostPort":1935,"bEnable":1,"nProtolType":3},"nChannel":0}]}} 
 nProtolType:
 2: SRT
 3: RTMP 
 Sets the protocol type for the stream  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":{"wHostPort":1935,"nProtolType":3},"nChannel":0}]}} 
  szHostUrl   user-defined  Sets the host address for the stream  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":{"wHostPort":1935,"nProtolType":3,"szHostUrl":"192.168.5.12"},"nChannel":0}]}} 
  wHostPort   [0-65535]  Sets the host port for the stream  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":{"wHostPort":1935,"nProtolType":3},"nChannel":0}]}} 
  szStreamName   user-defined  Sets the stream name  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":{"wHostPort":1935,"nProtolType":3,"szStreamName":"live/1213"},"nChannel":0}]}} 
  szUserName   user-defined  Sets the user name for the stream  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":{"wHostPort":1935,"nProtolType":3,"szUserName":"123"},"nChannel":0}]}} 
   szPassword    user-defined  Sets the password for the stream  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":{"wHostPort":1935,"nProtolType":3,"szPassword":"123"},"nChannel":0}]}} 
  szSrtKey   user-defined  Sets the SRT key for the stream  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":{"wHostPort":1935,"nProtolType":3,"szSrtKey":"0123456789"},"nChannel":0}]}} 
  wSrtKeyLen   [0-32]  Sets the SRT key length  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamPublish":[{"stMaster":{"wHostPort":1935,"nProtolType":3,"wSrtKeyLen":"0"},"nChannel":0}]}} 
  RTP Multicast streaming  
  Command    Values    Notes    Sample  
 Get RTP Multicast Parameters  nChannel: -1  Retrieves the RTP multicast parameters  http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"StreamRTPMulticast":{"nChannel":-1}}} 
 -  See below 
 Set RTP Multicast Parameters in one go 
 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stMaster":{"nProtolType":1,"bEnable":0,"wMultiCastPort":4000,"szMultiCastUrl":"224.1.2.3"},"stSlave":{"nProtolType":0,"bEnable":0,"wMultiCastPort":4002,"szMultiCastUrl":"224.1.2.3"},"nChannel":0}]}} 
  bEnable   0: off
 1: on 
 Enables or disables RTP multicast  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stMaster":{"bEnable":1,"wMultiCastPort":4004},"nChannel":0}]}} 
  nProtolType   0: RTP
 1: TS 
 Sets the protocol type for the multicast  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stMaster":{"nProtolType":1,"bEnable":1,"wMultiCastPort":4004},"nChannel":0}]}} 
  szMultiCastUrl   224.0.0.0 - 255.255.255.0  Sets the multicast address  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stMaster":{"szMultiCastUrl":"224.1.2.23","bEnable":0,"wMultiCastPort":4004},"nChannel":0}]}} 
  wMultiCastPort   [0-65535]  Sets the multicast port  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"StreamRTPMulticast":[{"stMaster":{"wMultiCastPort":4004,"bEnable":1},"nChannel":0}]}} 
  SRT Streaming  
  Command    Values    Notes    Sample  
 GET  See below  Gets the parameters of the SRT settings  http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"NetWork":{"nChannel":-1}}}
 wSrtLen  [0-32]
 crypto key length in bytes

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stSrt":{"wSrtLen":0,"wSrtPort":9000,"szSrtPin":"xxxxxxxxxx"}}}} 

 wSrtPort
 Default 9000
 SRT Port 

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stSrt":{"wSrtLen":0,"wSrtPort":9000,"szSrtPin":"xxxxxxxxxx"}}}} 

 szSrtPin
 user-defined
 Encryption password 

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stSrt":{"wSrtLen":0,"wSrtPort":9000,"szSrtPin":"xxxxxxxxxx"}}}} 

  Exposure Settings  
  Command    Values    Notes    Sample  
 GET  -  Get the video parameters 

 http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"VideoParam":{"nChannel":-1}}} 

 emExpMode  0: Auto
3: Manual
10: SAE
11: AAE
13: Bright
 Sets the exposure mode  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp":{"stExpMode":{"emExpMode":0}},"nChannel":0}]}} 
 expcomp_mode  2: On
 3: Off 
 Sets the exposure compensation mode

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp":{"expcomp_mode":2},"nChannel":0}]}}

 expcomp  [0-14]  Sets the exposure compensation  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp":{"expcomp":8},"nChannel":0}]}} 
 backlight  1: ON
 0: OFF 
 Sets backlight compensation  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp":{"backlight":1},"nChannel":0}]}} 
 antiflicker  0: OFF
1: 50HZ
 2: 60HZ 
 Sets antiflicker mode  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp":{"antiflicker":0},"nChannel":0}]}} 
 gainLimit  [0-15]  Sets the gain limit  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp":{"gainLimit":5},"nChannel":0}]}} 
 nShutter  [0-16]  Sets the shutter speed  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp":{"stShutter":{"nShutter":16}},"nChannel":0}]}} 
 nIris  [0-12]  Sets the iris level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp":{"stIris":{"nIris":12}},"nChannel":0}]}} 
 drc  [0-8]  Sets the Dynamic Range Compression 

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp": {"drc":6},"nChannel":0}]}} 



 bright
 [0-23]  Set the brightness level 

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stExp": {"bright":0},"nChannel":0}]}}

  Color Settings  
  Command    Values    Notes    Sample  
 emWbMode 

 0:   Auto 

 1:   3000K 

 7:   3500K 

 2:   4000K 

 8:   4500K 

 4:   5000K 

 9:   5500K 

 10:   6000K 

 6:   6500K 

 11: 7000K
5: Manual
 3: OnePush 

 Sets the white balance mode  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stColor":{"stWbMode":{"emWbMode":0}},"nChannel":0}]}} 
 rgaintuning  [0-20]  Sets the red gain tuning  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stColor":{"rgaintuning":0},"nChannel":0}]}} 
 bgaintuning  [0-20]  Sets the blue gain tuning  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stColor":{"bgaintuning":20},"nChannel":0}]}} 
 saturation  [0-14]  Sets the saturation level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stColor":{"saturation":0},"nChannel":0}]}} 
 hue  [0-14]  Sets the hue level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stColor":{"hue":14},"nChannel":0}]}} 
 awbsens
 0: Low
1: Middle
 2: High 
 Set the Auto-White Balance sensitivity 

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stColor":{"awbsens":0},"nChannel":0}]}} 

 nBWMode  0: Color
 4: B&W 
 Sets the black and white mode  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stImg":{"nBWMode":0},"nChannel":0}]}} 
  Image Settings  
  Command    Values    Notes    Sample  
 luminance  [0-23]  Sets the brightness level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv": {"VideoParam":[{"stImg":{"luminance":0},"nChannel":0}]}} 
 contrast  [0-14]  Sets the contrast level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stImg":{"contrast":0},"nChannel":0}]}} 
 sharpness  [0-15]  Sets the sharpness level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stImg":{"sharpness":1},"nChannel":0}]}} 
 gamma 

 0: Default 

 1:  0  .45 

 2:   0.50  
3:   0.55 

 4:   0.63 


 Sets the gamma level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stImg":{"gamma":0},"nChannel":0}]}} 
 dci  [0-8]  Sets the DCI level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stImg":{"dci":0},"nChannel":0}]}} 
 nFlipH  ON: 1
 OFF: 0 
 Flips the image horizontally  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stImg":{"nFlipH":3},"nChannel":0}]}} 
 nFlipV  ON: 1
 OFF: 0 
 Flips the image vertically  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stImg":{"nFlipV":2},"nChannel":0}]}} 
 nEZoom  ON: 1
 OFF: 0 
 Enables or disables digital zoom  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stImg":{"nEZoom":3},"nChannel":0}]}} 
 nStyleInx  0: Default
1: Normal
2: Clarity
3: Bright
 4: Soft 
 Sets the image style  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stColor":{"nStyleInx":0},"nChannel":0}]}} 
  Noise reduction Settings  
  Command    Values    Notes    Sample  
 noise2D  [0-8]  Sets the 2D noise reduction level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stNR":{"noise2D":0},"nChannel":0}]}} 
 noise3D  [0-8]  Sets the 3D noise reduction level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stNR":{"noise3D":0},"nChannel":0}]}} 
 dhotpixel  [0-5]  Sets the dynamic hot pixel correction level  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoParam":[{"stNR":{"dhotpixel":3},"nChannel":0}]}} 
  OSD Settings  
  Command    Values    Notes    Sample  
 GET  See below  Gett all OSD parameters  http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"TTFFontSize":{"nChannel":-1}}}
 bAutoSize

 0: Off
1: On
 Enable / disable the auto sizing of the OSD  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"TTFFontSize":{"nFontSize":[48,48],"bAutoSize":1}}}
 nFontSize

  [8-200]   Sets the OSD size  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"TTFFontSize":{"nFontSize":[48,48],"bAutoSize":1}}}
 -  See below  Sets all OSD settings in one go 

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOsd":[{"stTime":{"bEnable":1,"nIndex":0,"nXPos":0,"szText":"","nYPos":10000, "stFtColor":{"byAlpha":128,"byRed":255,"byGreen":255,"byBlue":255},"stBkColor":{"byAlpha":0,"byRed":0,"byGreen":0,"byBlue":0}},"stTitle":{"bEnable":0,"nIndex":0,"nXPos":0,"szText":"","nYPos":0,"stFtColor":{"byAlpha":128,"byRed":255,"byGreen":255,"byBlue":255},"stBkColor":{"byAlpha":0,"byRed":0,"byGreen":0,"byBlue":0}},"nChannel":0}]}} 

 bEnable  0: Not show
 1: Show 
 Show or hide time on OSD  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOsd":[{"stTime":{"bEnable":1},"nChannel":0}]}} 
 bEnable  0: Not show
 1: Show 
 Show or hide title on OSD  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOsd":[{"stTitle":{"bEnable":1},"nChannel":0}]}} 
 stFtColor  RGB: [0,0,0-255,255,255]
byAlpha:  [0-  128]
 Set font color for the time on OSD  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOsd":[{"stTime":{"stFtColor":{"byAlpha":128,"byRed":255,"byGreen":255,"byBlue":0}},"nChannel":0}]}} 
 stFtColor  RGB: [0,0,0-255,255,255]
byAlpha:  [0-  128]
 Set font color for the title on OSD  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOsd":[{"stTitle":{"stFtColor":{"byAlpha":128,"byRed":255,"byGreen":255,"byBlue":0}},"nChannel":0}]}} 
 nXPos  [0 - 10000]  Set X position offset for time on OSD  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOsd":[{"stTime":{"nXPos":9200},"nChannel":0}]}} 
 nXPos  [0 - 10000]  Set X position offset for title on OSD  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOsd":[{"stTitle":{"nXPos":9200},"nChannel":0}]}} 
 nYPos  [0 - 10000]  Set Y position offset for time on OSD  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOsd":[{"stTime":{"nYPos":1200},"nChannel":0}]}} 
 nYPos  [0 - 10000]  Set Y position offset for title on OSD  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOsd":[{"stTitle":{"nYPos":1200},"nChannel":0}]}} 
  Video Output Settings  
  Command    Values    Notes    Sample  
 nNetMode  -  default value 2, do not modify it!
 - 
 emVoutFormat  10: 1080P60
9: 1080P50
4: 1080P30
3: 1080P25
8: 1080I60
7: 1080I50
6: 720P60
5: 720P50
26: 720P30
25: 720P25
20: 1080P59.94
21: 1080P29.97
22: 720P59.94
 23: 720P29.97 
 Sets the video output format 

 http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"VideoOut":{"nNetMode":2,"emVoutFormat":9,"byFormatList":[10,9,4,3,8,7,6,5,26,25,20,21,22,23,24]}}} 


  Network Settings  
  Command    Values    Notes    Sample  
 GET  See below
 Get the Ethernet settings  http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"NetWork":{"nChannel":-1}}}
 -  See below  Set all Network settings in one go  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNetPort": {"wPortSoap":1936,"wPortData":3000,"wPortWeb":80,"wPortRtsp":554,"wPortVisca": 1259,"wPortOnvif":2000,"wPortRtmp":1935}}}}
 byValid  5: off
 7: on 
 Enables or disables DHCP  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stEth":[{"byValid":5}]}}} 
 szIPAddr  user-defined  Sets the IP address  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stEth":[{"szIPAddr":"192.168.5.127"}]}}} 
 szSubMask  user-defined  Sets the subnet mask  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stEth":[{"szSubMask":"255.255.255.0"}]}}} 
 szGateway  user-defined  Sets the default gateway  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stEth":[{"szGateway":"192.168.5.1"}]}}} 
 wPortSoap  [0-65535]  Sets the SOAP port  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNetPort":{"wPortSoap":1936}}}} 
 wPortData  [0-65535]  Sets the data port  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNetPort":{"wPortData":3000}}}} 
 wPortWeb  [0-65535]  Sets the web port  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNetPort":{"wPortWeb":80}}}} 
 wPortRtsp  [0-65535]  Sets the RTSP port  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNetPort":{"wPortRtsp":554}}}} 
 wPortRtmp  [0-65535]  Sets the RTMP port  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNetPort":{"wPortRtmp":1935}}}} 
 wPortVisca  [0-65535]  Sets the VISCA port  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNetPort":{"wPortVisca":1259}}}} 
 wPortOnvif  [0-65535]  Sets the ONVIF port  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNetPort":{"wPortOnvif":2000}}}} 
 szDns1  user-defined  Sets the preferred DNS server  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stDns":{"szDns1":"8.8.8.8"}}}} 
 szDns2  user-defined  Sets the alternate DNS server  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stDns":{"szDns2":"8.8.8.8"}}}} 
  NDI Settings  
  Command    Values    Notes    Sample  
 bNdiEnable  0: Off
 1: On 
 Enables or disables NDI functionality  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNdi":{"bNdiEnable":1}}}} 
 bNdiControlEnable  0: Off
 1: On 
 Enables or disables NDI control  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNdi":{"bNdiControlEnable":1}}}} 
 szNdiName  User-defined  Sets the NDI device name  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNdi":{"szNdiName":"Avonic-82342"}}}} 
 szNdiGroup  User-defined  Sets the NDI group name  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"NetWork":{"stNdi":{"szNdiGroup":"public"}}}} 
  System Configure  
  Command    Values    Notes    Sample  
 GET  -  Retrieve the system configuration 

 http://192.168.5.126/ajaxcom?szCmd={"GetEnv":{"SysAttr":{"nChannel":-1}}} 


 szDevName  User-defined  Sets the device name  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysAttr":{"szDevName":"MyDevice"}}} 
 szDeviceID  Cannot modify  Device ID  - 
 nLanguage  0: Simplified Chinese
 2: English 
 Sets the interface language  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysAttr":{"nLanguage":2}}} 
  License  
 QueryLicenseState  None  Get License parameters  http://192.168.5.126/ajaxcom?szCmd={"QueryState":{"QueryLicenseState":{}}} 
 bLicenseEnable  0: Disable
 1: Enable 
 Set License parameters  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"LicenseKey":{"bLicenseEnable":1,"szKeyText":"123456789"}}} 
  Systime  
 QuerySysTime  nChannel: -1  Retrieve system time parameters  http://192.168.5.126/ajaxcom?szCmd={"QueryState":{"QuerySysTime":{}}} 
 nDateFormat  0: YYYY-MM-DD
1: MM-DD-YYYY
 2: DD-MM-YYYY 
 Sets the date format  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysTime":{"nDateFormat":0}}} 
 nDateSprtr  0: .
1: -
 2: / 
 Sets the date separator  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysTime":{"nDateSprtr":0}}} 
 nZone 

 0: GMT 

 1:   GMT+01:00 

 2:   GMT+02:00 

 3:   GMT+03:00 

 4:   GMT+03:30 

 5:   GMT+04:00 

 6:   GMT+04:30 

 7:   GMT+05:00 

 13: GMT+08:00 

 20: GMT-01:00 

 31: GMT-11:00 

 32:   GMT-12:00 

 Sets the time zone  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysTime":{"nZone":0}}} 
 nHourType  0: 24 Hours
 1: 12 Hours 
 Sets the hour type (24-hour or 12-hour format)  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysTime":{"nHourType":0}}} 
 bEnable  0: Off
 1: On 
 Enables or disables NTP (Network Time Protocol)  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysTime":{"stNtp":{"bEnable":1}}}} 
 nUpdateInterval  [1-10]  Sets the NTP update interval (in hours)  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysTime":{"stNtp":{"nUpdateInterval":2}}}} 
 szHostUrl  User-defined NTP server address  Sets the NTP server URL  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysTime":{"stNtp":{"szHostUrl":"time.nist.gov"}}}} 
 nHostPort  User-defined: [0-65535]  Sets the NTP server port  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysTime":{"stNtp":{"nHostPort":123}}}} 
 bTimeType  1: Synchronize with computer time
 0: Set manually 
 Synchronizes the system time with the computer time or sets it manually  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"SetTime":{"bTimeType":1,"nZone":19,"stDateTime":{"dwYear":2018,"byHour":15,"byMinute":38,"byDay":1,"byMonth":11,"bySecond":2}}}} 
 SyncNtp  -  Synchronizes with the NTP server  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"SyncNtp":""}} 
  Sysuser  
 szUserName  User-defined  Sets the user name  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysUser":{"stUsers":[{"szUserName":"admin","szPassword":"admin"}]}}} 
 nUserType  0: Admin
 1: User 
 Sets the user type  http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"SysUser":{"stUsers":[{"nUserType":0,"szUserName":"admin","szPassword":"admin"}]}}} 
  Firmware  
 QueryVersion  -  Get update parameters  http://192.168.5.126/ajaxcom?szCmd={"QueryState":{"QueryVersion":{}}} 



 Get the return value and split it like this: 

 szText.Format(“%d.%d.%d%d-%d-%d”,(stVersion.dwCamVersion>>16)&0xFF,(stVersion.dwCamVersion>>8)&0xFF, (stVersion.dwCamVersion0xFF),(stVersion.dwCamDate>>16)&0xFFFF,(stVersion.dwCamDate>>8)&0xFF, (stVersion.dwCamDate&0xFF));
  Defaults  
 Default  -  Set camera to factory defaults  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"Default":{}}} 
  Reboot  
 Reboot  -  Reboots the camera  http://192.168.5.126/ajaxcom?szCmd={"SysCtrl":{"Reboot":{}}} 
Tracking



Tracking mode0: Presenter
1: Conference
2: Tracking (No Zoom)
3: Hybrid

http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"MonoTracking":{"nTrackWay":2}}}
Tracking On/Off0: off
1: on

http://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"MonoTracking":{"bEnable":1}}}
Tracking Body Position0: Medium Shot
1: Close Up Shot
2: Wide Shot
defines the zoom level during Hybrid and Presenter tracking modehttp://192.168.5.126/ajaxcom?szCmd={"SetEnv":{"MonoTracking":{"nBodyPos":{"emBodyPosMod":0}}}}