Skip to content

TextOverlayParameters

Endpoints · All schemas

FieldRequiredDescription
colorNoText color in hex format
endMsNoOverlay end time in milliseconds
positionNoSee definition below
shadowNoDraw a soft drop shadow behind the text
sizeNoFont size as a percentage of video height
startMsNoOverlay start time in milliseconds
textYesstring
xYesHorizontal position as a percentage of video width
yYesVertical position as a percentage of video height

Complete definition

required lists fields that must be present. nullable allows a null value; it does not make the field optional. Response enums retain exact wire values for compatibility.

Field definitions: TextOverlayPosition

{
  "properties": {
    "color": {
      "default": "#ffffff",
      "description": "Text color in hex format",
      "pattern": "^#[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$",
      "type": "string"
    },
    "endMs": {
      "description": "Overlay end time in milliseconds",
      "maximum": 9007199254740991,
      "minimum": 1,
      "type": "integer"
    },
    "position": {
      "$ref": "#/components/schemas/TextOverlayPosition"
    },
    "shadow": {
      "description": "Draw a soft drop shadow behind the text",
      "type": "boolean"
    },
    "size": {
      "default": 0.06,
      "description": "Font size as a percentage of video height",
      "format": "double",
      "maximum": 0.2,
      "minimum": 0.01,
      "type": "number"
    },
    "startMs": {
      "description": "Overlay start time in milliseconds",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "text": {
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    },
    "x": {
      "description": "Horizontal position as a percentage of video width",
      "format": "double",
      "maximum": 1,
      "minimum": 0,
      "type": "number"
    },
    "y": {
      "description": "Vertical position as a percentage of video height",
      "format": "double",
      "maximum": 1,
      "minimum": 0,
      "type": "number"
    }
  },
  "required": [
    "text",
    "x",
    "y"
  ],
  "type": "object"
}