ok fixed the subtitles having HTML tags
Some checks are pending
Build and Release IPA / Build IPA (push) Waiting to run

This commit is contained in:
cranci1 2025-02-15 17:28:21 +01:00
parent 152b4d585f
commit 4bb2d77c74

View file

@ -169,7 +169,7 @@ struct CustomMediaPlayer: View {
VStack {
Spacer()
if let currentCue = subtitlesLoader.cues.first(where: { currentTime >= $0.startTime && currentTime <= $0.endTime }) {
Text(currentCue.text)
Text(currentCue.text.strippedHTML)
.font(.system(size: CGFloat(subtitleFontSize)))
.multilineTextAlignment(.center)
.padding(8)