VIDEO_OA_getDefaultStreamNumForWorkstation()

Returns the default stream for a user interface.

Synopsis

unsigned VIDEO_OA_getDefaultStreamNumForDisplay(string mode = "live", unsigned workstation = 0);

Parameters

Parameter Description
mode

Live or playback stream

live = Live stream

playback = Playback stream

workstation

Manager number of the user iInterface.

0 or default: own user interface

Return Value

Default stream number

Errors

Missing or wrong arguments

Description

The function determines the default stream for a user interface. The default stream defines which camera stream should be shown on a user interface. Configure the value per user interface for live streams and playback streams in the object explorer. If you do not specify a stream or the workstation data point does not exist, the default stream is always 1.

EXAMPLE

main()
{
  //Value for live streams for the own user interface
  DebugN(VIDEO_OA_getDefaultStreamNumForWorkstation());
  //value for live streams for the user interface number 7
  DebugN(VIDEO_OA_getDefaultStreamNumForWorkstation("live", 7));
}

Assignment

Video functions

Availability

UI, CTRL