getFlipping.lua
[INDEX]

ABSTRACT

Get video rotation/flipping options

The encoders support picture rotation by 90/180/270 degrees, and horizontal mirror/vertical flipping.

NOTE: If the text overlay is enabled, with rotated/flipped of the picture, whether the text rotated/flipped followed the picture or not, it can be configured by 'NoRotate' option in setOSDEnable.lua

ARGUMENTS

HTTP Arguments submit: POST

Test this API over HTTP - (URL):

NONE

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.

"Data": {
/*OBJECT*/

Rotation/Flipping status

"Mode":
"STRING"

Current rotation/flipping status

0

Normal, no rotation/flipping

90

Rotate 90 Deg. clockwise

180

Rotate 180 Deg. clockwise

270

Rotate 270 Deg. clockwise (90 Deg. anticlockwise)

mirror

Mirror (Horizontal flip)

flip

Vertical flip

}
}

OTHER NOTES

Device HTTP API, v1.0