VIDEO_OA_getUserPermission()

The function returns the authorization for the given action.

Synopsis

bool VIDEO_OA_getUserPermission(string level);

Parameters

Parameter Description
level

Inquired authorization level:

perm_1 Super user
perm_2 Display a live stream
perm_3 Display playback
perm_4 Export videos
perm_5 Configure sequencer
perm_6 Operate sequencer
perm_7 Configuration of preset positions 1-10
perm_8 Configuration of preset positions 11-20
perm_9 Set preset position
perm_10 PTZ commands from the user interface
perm_11 Create or delete scenarios
perm_12 Configure scenarios
perm_13 Display scenarios
perm_14 Alarm configuration
perm_15 Reserve
perm_16 Object configuration
perm_17 Create new objects
perm_18 Delete objects
perm_19 System settings
perm_20 Adjust cameras in the image
perm_21 Export of videos
perm_22 Protect videos
perm_23 Unprotect videos
perm_24 Display playback
perm_25 Management of exports

Return Value

1 = Authorization for the requested level available

0 = Authorization for the requested level not available or the given level is not know.

Errors

Missing or wrong arguments

Description

The function returns the authorization for the given action.

EXAMPLE

main()
{
  DebugN(VIDEO_OA_getUserPermission("perm_1");
}

Assignment

Video functions

Availability

UI, CTRL