ExoPlayer2 的 SubtitleView 可以取消字幕背景,你可以使用以下代码:

subtitleView.setApplyEmbeddedStyles(false);
subtitleView.setApplyNonEmbeddedStyle(false);
subtitleView.setBackgroundColor(Color.TRANSPARENT);

第一行代码禁用了内嵌样式,第二行代码禁用了非内嵌样式,第三行代码将背景颜色设置为透明。这将使字幕不带背景显示。

ExoPlayer2 SubtitleView 如何去除字幕背景