set-surface

Use this interface to modify overlay settings.

HTTP Request

GET http://ip/usapi?method=set-surface&id=xxx&stream-index=xxx&...
Parameter Description
method set-surface
id Overlay ID which can be obtained using get-surfaces.
stream-index 0: main stream
1: sub stream
position Overlay location.
x-offset The x-coordinate of the upper left corner of the overlay position, which is valid when the overlay location is customized.
y-offset The y-coordinate of the upper left corner of the overlay position, which is valid when the overlay location is customized.
margin The width between the overlay and the outer margin. The default value is 0.
condition Reserved.
class Overlay options.
0: text
1: system clock
2: picture
Text
font-family Font family.
font-size Font size.
font-style Font style.
font-weight Font weight.
font-color Font color.
line-width Font line width.
line-color Font line color.
width Text width.
height Text height.
text Content.
System time
font-family Font family.
font-size Font size.
font-style Font style.
font-weight Font weight.
font-color Font color.
line-width Line width.
line-color Line color.
width Text width.
height Text height.
text Time format.
Picture
index Picture ID which can be obtained using get-images.
alpha alpha ranges from 0 to 255.
scale Scale an image from 1% to 400%.

Response Body

{
  "result": 0
}
Item Description
result Returned status.
0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""