From a821aec028d0c87895ed5bb41096c4836b367e7b Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 4 Dec 2023 15:41:54 +0100 Subject: [PATCH] feat: render html and css in captions --- .../java/com/github/libretube/ui/views/CustomExoPlayerView.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt b/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt index 0d56deb31..4511e0f74 100644 --- a/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt +++ b/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt @@ -605,6 +605,7 @@ open class CustomExoPlayerView( val captionStyle = PlayerHelper.getCaptionStyle(context) subtitleView?.apply { setApplyEmbeddedFontSizes(false) + setViewType(SubtitleView.VIEW_TYPE_WEB) setFixedTextSize(Cue.TEXT_SIZE_TYPE_ABSOLUTE, PlayerHelper.captionsTextSize) if (!PlayerHelper.useSystemCaptionStyle) return setApplyEmbeddedStyles(captionStyle == CaptionStyleCompat.DEFAULT)