VIDEO_OA_getStreamInfo()
Returns the stream information, which is saved in a camera data point
Synopsis
dyn_string VIDEO_OA_getStreamInfo(string camera, unsigned stream = 1, string
mode ="live", string type = "widget");
Parameters
Parameter | Description |
---|---|
camera | Camera data point (e.g. Camera_00001) |
stream | Stream number (1, 2 or 3) |
mode |
Live or playback stream live = live stream playback = playback stream |
type |
Display type widget = Display in a video EWO display = Display on a display server. In this mode the stream information will be returned without the controller annex and can be used directly for a display on a display server. |
Return Value
[1] Stream information
[2] Stream number of the returned information of [1]. The value corresponds to the parameter value stream when the requested stream was found.
[3] 0 = the returned stream number is the requested stream number. 1= the returned stream number does not correspond to the requested number. If the requested stream number is not found, the function will search for available streams in the order Stream 1, Stream 2, Stream 3. If the stream 3 is requested and it does not exist, the function will search for the stream information for the stream 1 first and then for the information for the stream 2. The function will return the information that was found first.
-1 = No stream information was found for this camera.
Errors
Missing or wrong arguments
Description
This function returns the stream information for the given stream. The information is saved in the camera data point in the element *.object.device.currentStreamInfo or *.object.device.currentPklaybackInfo. If no stream information is found for the specified stream, the function will search for the stream information of other stream numbers in the order Stream 1, Stream 2, Stream 3.
EXAMPLE
main()
{
dyn_string streamInfo = VIDEO_OA_getStreamInfo("Camera_00001");
if (streamInfo[1] != "")
ewo1.showLive(streamInfo[1], 1, 0);
else
VIDEO_OA_openMessageWarning(getCatStr("voa_general",
"display_streamNotFound"));
}
Assignment
Video functions
Availability
UI, CTRL