Skip to content

Commit

Permalink
Add comment to setApplyEmbeddedStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
moneytoo committed Apr 14, 2021
1 parent 890b5d5 commit 1bc1e49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/brouken/player/PlayerActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,10 @@ void updateSubtitleStyle() {
subtitlesScale = captioningManager.getFontScale();
if (subtitleView != null) {
subtitleView.setUserDefaultStyle();
// Do not apply embedded style as currently the only supported color style is PrimaryColour
// https://github.com/google/ExoPlayer/issues/8435#issuecomment-762449001
// This may result in poorly visible text (depending on user's selected edgeColor)
// The same can happen with style provided using setStyle but enabling CaptioningManager should be a way to change the behavior
subtitleView.setApplyEmbeddedStyles(false);
}
}
Expand Down

0 comments on commit 1bc1e49

Please sign in to comment.