Attributes

Table of Contents

EDNETP_ATTR_VERSION (0)
EDNETP_ATTR_ERROR_CODE (1)
EDNETP_ATTR_STATE (2)
EDNETP_ATTR_MODE (3)
EDNETP_ATTR_CAMERA_TOTAL (4)
EDNETP_ATTR_CAMERA (5)
EDNETP_ATTR_DISPLAY_MODE (6)
EDNETP_ATTR_DISPLAY_RATIO (7)
EDNETP_ATTR_DISPLAY_ACCEL (8)
EDNETP_ATTR_DISPLAY_BORDER (9)
EDNETP_ATTR_MUTE (10)
EDNETP_ATTR_VOLUME (11)
EDNETP_ATTR_ALARM_TOTAL (12)
EDNETP_ATTR_AUDIO_TOTAL (13)
EDNETP_ATTR_AUDIO_NAME (14)
EDNETP_ATTR_STILL_IMAGE_DIR (15)
EDNETP_ATTR_STILL_IMAGE_NAME (16)
EDNETP_ATTR_BACKUP_DIR (17)

Attributes can be retrieved with getAttr() and some attributes may be changed with EDNETP_EVENT_ATTR (1) by applications. (You can lookup attribute numbers in ednetp-const.js in web client javascript examples)

EDNETP_ATTR_VERSION (0)

Describes the version of EDNet OCX. Data format is 'major:minor', where major is a major version number, and minor is a minotr version number.

This attribute is read-only.

EDNETP_ATTR_ERROR_CODE (1)

Describes the error status for the last action. Data format is 'error', where error is a error code.

This attribute is read-only.

EDNETP_ERROR_NONE (0)

No error occured

EDNETP_ERROR_RESOLVE (1)

Failed to resolve IP address

EDNETP_ERROR_CONNECT (2)

Failed to connect to the remote server

EDNETP_ERROR_LOGIN (3)

Failed to login due to invalid login information

EDNETP_ERROR_PERMISSION (4)

Failed to login due to insufficient permission

EDNETP_ERROR_CONNECTION_LIMIT (5)

Failed to login due to reach connection limitation

EDNETP_ATTR_STATE (2)

Describes the state of the connection to the remote server. Data format is 'state', where state is a status code.

This attribute is read-only.

EDNETP_STATE_OFFLINE (0)

Offline or Disconnected

EDNETP_STATE_RESOLVE (1)

Resolving host name to IP address

EDNETP_STATE_CONNECT (2)

Connecting to the remote server

EDNETP_STATE_INIT (3)

Initializing the connection

EDNETP_STATE_LOGIN (4)

Authenticating with user name and password

EDNETP_STATE_PREPARE (5)

Preparing to fetch basic information from the remote server

EDNETP_STATE_ONLINE (6)

Ready to streaming and control the remote server

EDNETP_ATTR_MODE (3)

Describes the operation mode. Data format is 'mode', where if mode is 0 it's live display, otherwise it's search replay.

EDNETP_ATTR_CAMERA_TOTAL (4)

Describes the number of cameras on the remote server. Data format is 'total', where total is a integer value.

This attribute is read-only.

EDNETP_ATTR_CAMERA (5)

Describes selected camera number. Data format is 'camera', where camera is a integer value.

EDNETP_ATTR_DISPLAY_MODE (6)

Describes display screen mode. Data format is 'rowsxcols', where rows is the number of rows in display screen, and cols is the number of columns in display screen.

EDNETP_ATTR_DISPLAY_RATIO (7)

Describes display ratio. Data format is 'ratio', where ratio is the ratio type.

EDNET_PLUGIN_DISPLAY_RATIO_NORMAL (0)

Fits to display screen.

EDNET_PLUGIN_DISPLAY_RATIO_4_3 (1)

Displays in 4:3 ratio.

EDNET_PLUGIN_DISPLAY_RATIO_ORIGINAL (2)

Displays in original ratio.

EDNETP_ATTR_DISPLAY_ACCEL (8)

Not supported any more.

EDNETP_ATTR_DISPLAY_BORDER (9)

Describes the display border color. Data format is 'size:bg-color:selected-color', where size is the thickness in pixel units, bg-color is the default border color described in '#RRGGBB' format, and selected-color is the selected border color described in '#RRGGBB' format.

EDNETP_ATTR_MUTE (10)

Describes the status of the mute. Data format is 'mute', where if mute is 0 mute is off, otherwise mute is on.

EDNETP_ATTR_VOLUME (11)

Describes the size of the volume. Data format is 'volume', where volume is a integer value between 0 and 128.

EDNETP_ATTR_ALARM_TOTAL (12)

Describes the number of relay devices on the remote server. Data format is 'relays', where relays is a integer value.

This attribute is read-only.

EDNETP_ATTR_AUDIO_TOTAL (13)

Describes the number of audio channels on the remote server. Data format is 'audios', where audios is a integer value.

This attribute is read-only.

EDNETP_ATTR_AUDIO_NAME (14)

Describes the name of the local audio channel. Data contains a string used for bidirectional audio communication.

EDNETP_ATTR_STILL_IMAGE_DIR (15)

Describes the directory to save still images. Data contains a full path string. Default is the dekstop folder of the user.

EDNETP_ATTR_STILL_IMAGE_NAME (16)

Describes the format of still image file names. Data is a string which consists of reserved format keywords like %h for host name, %c for camera number, %d for the date and %t for the time. Default is %h-%c-%d-%t.

EDNETP_ATTR_BACKUP_DIR (17)

Describes the directroy to download recorded mpeg files. Data contains a full path string. Default is the dekstop folder of the user.