# Subtitle
ByteArk Player SDK for Flutter supports subtitles embedded in the HLS manifest, with customizable appearance, and a viewer-facing picker through the player UI.
# Style subtitle appearance
final config = ByteArkPlayerConfig(
licenseKey: licenseKey,
playerItem: playerItem,
subtitleSize: ByteArkPlayerSubtitleSize.medium,
subtitleBackgroundEnabled: true,
subtitlePaddingBottomPercentage: 10,
);
1
2
3
4
5
6
7
2
3
4
5
6
7
| Property | Type | Default | Description |
|---|---|---|---|
subtitleSize | ByteArkPlayerSubtitleSize? | medium | Font size (small, medium, large) |
subtitleBackgroundEnabled | bool? | true | Show subtitle background |
subtitlePaddingBottomPercentage | int? | 10 | Bottom padding (%) |
# Select subtitle via API
// Select a subtitle
_controller.setSubtitle(track);
// Disable subtitle
_controller.setSubtitle(null);
1
2
3
4
5
2
3
4
5