Skip to content

User JSON VideoIndicator

roosit edited this page Oct 16, 2026 · 2 revisions

Video JSON

Back to list | Indicator page | Русский

Purpose

This page describes the JSON template of the video indicator for editing .vttp by hand.

Full Template

{
  "name": "com.velitask.plagin.official.video",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "videoSource": {},
      "adaptive": {"value": false},
      "fit": {"value": 0},
      "border": {
        "lineColor": {"r": 255, "g": 255, "b": 255, "a": 255},
        "thickness": {},
        "style": {"value": 0},
        "dashPattern": {"value": ""},
        "cornerRadius": {}
      },
      "audioEnabled": {"value": true},
      "volume": {"value": 100}
    }
  }
}

Settings

videoSource

Chooses the video for the picture-in-picture window. Leave it empty in a template: the source is chosen in the project after the template is applied.

{
  "videoSource": {}
}
Field Values What it does
sourceId.value a number, 0 means not selected The number of the (video) source in the project. The field is not written in a template.

adaptive

Turns on automatic video selection: the project video file that plays at the current moment is shown. If there is no suitable one, the window is empty.

{
  "adaptive": {"value": false}
}
Field Values What it does
value false, true false uses the selected source; true picks the source automatically for the current project moment.

fit

Chooses how the frame fits into the layer.

{
  "fit": {"value": 0}
}
Field Values What it does
value 0, 1, 2, 3 The number of the scaling option.
value Option in the UI What happens
0 Fill (crop) The frame covers the whole layer; anything extra at the edges is cropped.
1 Fit (letterbox) The whole frame is visible; empty margins are possible.
2 Stretch It is stretched over the whole layer; the proportions are not kept.
3 Center The original size, centered; anything extra is cropped.

Any other number is read as 0.

border

A border around the video: color, thickness and corner rounding. It consists of five nested fields.

{
  "border": {
    "lineColor": {"r": 255, "g": 255, "b": 255, "a": 255},
    "thickness": {},
    "style": {"value": 0},
    "dashPattern": {"value": ""},
    "cornerRadius": {}
  }
}
Field Values What it does
lineColor an object r, g, b, a The border color.
thickness an object value The border thickness.
style an object value The line style (does not affect this indicator).
dashPattern an object value The dash pattern (does not affect this indicator).
cornerRadius an object value The corner radius.

lineColor

The color and transparency of the border.

{
  "lineColor": {"r": 255, "g": 255, "b": 255, "a": 255}
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Transparency: 0 fully transparent, 255 opaque.

thickness

The border thickness in pixels.

{
  "thickness": {}
}
Field Values What it does
value 0..50 The border thickness; 0 means no border.

An empty object {} means the default value, 1. To set your own, write, for example, {"value": 3}.

style

The border line style. For this indicator the value is saved, but the line is always drawn solid.

{
  "style": {"value": 0}
}
Field Values What it does
value 0..7 The number of the line style.
value Option in the UI
0 Solid
1 Dash
2 Dot
3 Dash-dot
4 Dash-dot-dot
5 Long dash
6 Short dash
7 Custom

dashPattern

A custom dash pattern for the "Custom" style. For this indicator the value is saved, but it does not affect the look of the border.

{
  "dashPattern": {"value": ""}
}
Field Values What it does
value a string, for example "12,6" Alternating dash and gap lengths; an empty string means a solid line.

cornerRadius

The rounding of the corners of the video and the border.

{
  "cornerRadius": {}
}
Field Values What it does
value 0..500 The corner radius; 0 means square corners.

An empty object {} means the default value, 0. To set your own, write, for example, {"value": 30}.

A border with thickness 0 is not drawn, but the corner rounding still applies.

audioEnabled

Turns audio playback on or off.

{
  "audioEnabled": {"value": true}
}
Field Values What it does
value true, false true plays the sound; false means no sound.

volume

The audio volume in percent.

{
  "volume": {"value": 100}
}
Field Values What it does
value 0..100 The volume: 0 is silence, 100 is the original volume.

The volume takes effect only if audioEnabled is true.

Clone this wiki locally