Skip to content

Commit

Permalink
add subtitle outline
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarios committed Sep 28, 2023
1 parent 8900842 commit c6178a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/player/states/video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ class VideoPlayerCubit extends MediaPlayerCubit<VideoPlayerState> {
fit: fillVideo ? BoxFit.cover : BoxFit.contain,
subtitlesConfiguration: BetterPlayerSubtitlesConfiguration(
fontSize: settings.state.subtitleSize,
outlineEnabled: true,
outlineColor: Colors.black,
outlineSize: 1
),
controlsConfiguration: BetterPlayerControlsConfiguration(showControls: false
// customControlsBuilder: (controller, onPlayerVisibilityChanged) => PlayerControls(mediaPlayerCubit: this),
Expand Down

0 comments on commit c6178a7

Please sign in to comment.