-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subtitles have been broken in this repo #544
Comments
你的意思是commit e8f6161, 导致图片字幕出现问题吗? |
你这个是文字字幕还是图片字幕呢?我最近是有改了文字字幕(ass格式的) |
These are text subtitles. If I go back to my commits before I updated your pod, everything is back working well. But after that pod update it stopped working properly. Sent from my iPhoneOn Sep 11, 2023, at 5:20 PM, kingslay ***@***.***> wrote:你的意思是commit e8f6161, 导致图片字幕出现问题吗?
|
Recently they not even longer appear. Or if they do in the previous commits they appear in a bad format like you see in the screenshot. Sent from my iPhoneOn Sep 11, 2023, at 6:58 PM, kingslay ***@***.***> wrote:
O 你这个是文字字幕还是图片字幕呢?我最近是有改了文字字幕(ass格式的)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
你用最新的代码试下。我周末的时候有修复了这个问题。如果还是不行的话 你把URL发给我下 我debug下 |
With the most recent code, the subtitles don't appear at all. To recap:
I can't share URLs unfortunately atm. |
你是否可以只截取一分钟的视频,然后上传到github。 |
或者你可以把ass字幕从视频剥离出来。然后单独发给我ass字幕文件 |
I confirm that is a problem with your updates. Atm the only thing I could do is to go way back and force push a different commit on my fork (because |
我有网上找了几个ass字幕来进行测试,是可以显示字幕的。所以你这边需要提供给我有问题的字幕。我才能排查是什么问题导致。 |
Noticed that after selecting a subtitle, the subtitleLabel gets the font set to 16 instead fo keeping the font size. |
@kingslay this needs to be reopened. Please see my latest comments. Thx. |
Thank you. @kingslay Now the style is back to normal, but not the size. I have a large subtitles set, but instead of showing the old size like the picture in the comment above, it is super small. |
I can confirm that on iOS/iPadOS the subtitles colour and size no longer change. Used to work fine. Works on tvOS. |
因为你这个是ass字幕。ass字幕指定了字体大小和颜色。所以就无法修改字体大小和颜色 |
Sorry but if until few days ago it used to work well and the dimension was right, how can you say this now? @UnknownCoder807 for me doesn't work not even on tvOS. I'm using an older version of this library for now because this problem. |
I just tried an older testflight build of my app and subtitle colour and size for live tv could be changed. I then opened the latest testflight version (with all ksplayer commits so far) and the exact same stream as before and the subtitle colour and size cannot be changed. This is the same issue as the OP is having I am sure. |
是的,因为之前不支持解析ass的样式,最近的代码才支持的。所以才有这个问题。你可以直接从NSAttributedString取出string,而不用NSAttributedString。这样就可以自定义样式呢 |
edit to add : It's movies/tv series as well that won't allow colour change. and also, I was mistaken, it is broken on tvOS too. I am not sure what you've done @kingslay but customised subtitles no longer work. |
因为NSAttributedString带有字体大小和颜色。你们可以不用NSAttributedString。用String就可以了 |
I don't even know what this means. I will roll back to an earlier commit and just use ksplayer only for then. But whatever you have changed has broken a major feature of ksplayer and sadly it seems you can't see this. |
把Text(AttributedString(text)) 改成Text(AttributedString(text.stinrg)) 字体大小和颜色就可以生效了 |
然后也把.if(self.textPosition == nil) { 去掉就可以 |
把代码改成
|
so in a non swift ui environment with custom view, what I do is only selecting the subtitle. Do you have an example of how to change the code to make it work? |
@kingslay how can I reach the same result using |
@kingslay would you help me understanding this? |
I think you referenced the wrong issue? |
Describe the bug
One of the commit after
or
After commit e8f6161,
subtitles are broken. See screenshots.
If I go back to that commit, the subtitles aren't broken.
To Reproduce
Actual: At least some subtitles type (those I tested, but maybe all) that use to work before, now are broken.
Expected behavior
ALL types of subtitles should still be showing correctly, like before.
Screenshots
In the first screenshot observe letters appearing in the middle of the screen.
In the second screenshot observe the subtitle squeezed.
Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: