Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Build an application and check video streaming from a local IP camera to VXG Cloud

  2. Camera capabilities

  3. Video streaming

  4. Integration with the settings API

  5. Integrating PTZ commands

  6. Integration of motion and sound events

  7. Integration of the backward audio channel

Minimal requirements

Below are the minimal requirements for the camera to run the cloud agent based on Embedded SDK:

  • gcc: >= 4.8.1

  • RAM: 30 Mb per channel

  • Flash memory: 12 Mb

1. Build an application and check video streaming from a local IP camera to VXG Cloud

...

Here is a list of callbacks classes and functions that must be implemented using your platform capabilities:   

Callback class

Function name

Description

vxg::cloud::agent::media::stream

get_supported_stream

get_stream_caps

get_stream_config

caps_video_object

caps_audio_object

motion_detection_caps

vxg::cloud::agent::callback

on_get_cam_video_config

on_get_cam_audio_config

on_get_ptz_config

on_get_osd_config

on_get_wifi_config

on_get_motion_detection_
config

on_set_cam_events_config

on_get_timezone

on_get_memorycard_info

audio_config

video_config

ptz_config

osd_config

wifi_config

motion_detection_config

memorycard_info_object

3. Video streaming

The camera agent application broadcasts the video stream to VXG Cloud and uploads images and video files to the VXG storage directly. VXG Cloud sends "start" and "stop" commands to the camera, and the VXG agent starts or stops streaming.

...

The list below shows the relationship between the VXG Cloud API and the callback functions in the VXG agent library that the application should handle: 

Description

API

Callback class

Parameters

Returns basic video settings and capabilities

GET
/cameras/{CAMID}/video/

on_get_cam_video_config

vertical flip

horizontal flip

tdn (true day/night)

IR light for night conditions

brightness

contrast

saturation

sharpness

noise reduce types

level of noise reduce

white balance types

power line frequency

Changes basic video settings of the camera

PUT
/cameras/{CAMID}/video/

on_set_cam_video_config

vertical flip

horizontal flip

tdn

IR light for night conditions

brightness

contrast

saturation

sharpness

noise reduce types

level of noise reduce

white balance types

power line frequency

Returns basic audio settings and capabilities

GET
/cameras/{CAMID}/audio/

on_get_cam_audio_config

microphone gain

microphone mute

speaker volume

mute speaker

echo cancellation

Changes basic audio settings of the camera

PUT
/cameras/{CAMID}/audio/

on_set_cam_audio_config

microphone gain

microphone mute

speaker volume

mute speaker

echo cancellation

Returns OSD settings and capabilities

GET
/cameras/{CAMID}/osd/

on_get_osd_config

static content of OSD

enable/disable time part of OSD

enable/disable date part of OSD

one of predefined values from caps

one of predefined font sizes from caps

name of one of predefined font colors from

name of one of predefined background colors

enable/disable OSD background transparency

one of predefined positions from caps

Changes OSD settings of the camera

PUT
/cameras/{CAMID}/osd/

on_set_osd_config

static content of OSD

enable/disable time part of OSD

enable/disable date part of OSD

one of predefined values from caps

one of predefined font sizes from caps

name of one of predefined font colors from

name of one of predefined background colors

enable/disable OSD background transparency

one of predefined positions from caps


Returns basic settings and capabilities of motion detection

GET
/cameras/{CAMID}/
motion_detection/

on_get_motion_detection
_config

rows - number of detection cells by Y

columns - number of detection cells by X

List of motion regions


Changes motion detection settings

PUT
/cameras/{CAMID}/
motion_detection/

on_set_motion_detection
_config

rows - number of detection cells by Y

columns - number of detection cells by X

List of motion regions

5. Integrating PTZ commands

...