selectVideoSource.lua
[INDEX]

ABSTRACT

Select video source (only valid for device with multiple video input sources)

ARGUMENTS

HTTP Arguments submit: GET; POST

Test this API over HTTP - (URL):

Source

Specify a video source name (Sources list got from getVideoSource.lua)

Two special values:

AUTO

Automatically detect video source. If a device with multiple video sources, it candetect which source has valid video signal and locks it as the actual source.

For example, KILOVIEW M2 has two video sources: HDMI and VGA. If the M2 device detected HDMI video, then HDMI is the current source; or if it detected VGA video,the VGA should be current source. If both HDMI and VGA with signals, the HDMI would be selected because it has higher priority.

If it lost signal of current source suddenly, the device will try detect other sources.

For single source device, just select the default source.

ONESHOT

Oneshot automatical detection. It's like the 'AUTO' mechanism, but once a source was detected, the source is locked. Even signal lost of this source, the device will not detect others, util reset/reboot the device.

Test value:

RETURNS

Return a JSON style result. The JSON format is:

{
/*OBJECT*/

"Result":
NUMBER

200 means OK, other error code meanings are similar to HTTP Response.

"Status":
"STRING"

Status message. Responsing result status of API executive, if there errors, it will describe reasons.

}

OTHER NOTES

KILOVIEW Device HTTP API, v1.0