mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
Merge pull request #5284 from Bnyro/master
feat: render html and css in captions
This commit is contained in:
commit
581af62d7a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user