A font id from SubtitlesState.fonts.
16–72.
Text colour.
Outline width 0–4.
Bottom margin 2–15 % of the video height.
Timing offset in milliseconds, −600000…600000 (±10 minutes); positive
shows the subtitles later. Outside the range the player refuses the
style with invalid.
OptionalboldBold text; default false.
OptionalshadowShadow offset 0–4 at the 1080p reference height.
OptionalboxBackground box opacity 0–100; null or omitted: no box (the shadow applies).
Optionalasskeep (default): ASS scripts keep their own styling; force: this style replaces it.
OptionalsecondaryWhere the secondary subtitle sits; default top.
A subtitle style layer (Subtitles.setStyle). Sizes are at the 1080p reference height and scale with the video. Each plugin has one layer; when several plugins set one, the effective style is the layer of the plugin whose manifest id sorts last (the order of the calls does not matter). It also applies to the secondary subtitle.
Example: Show large yellow subtitles a quarter second earlier
Subtitles turn yellow at size 44 on a 60 % opaque box, 6 % above the bottom of the video, and appear 250 ms earlier.
refreshreads the subtitle state from the player, whosefontslists the font ids a style may name;setStylethen sends this plugin's style layer . It shows unless another plugin with a manifest id that sorts later has a layer too: the player picks the effective layer by manifest id, not by which call came last.Since
1.0.0