Enable heuristic character set detection for SRT subtitles
verion: 1.6.0-rc01
Two ways:
-
Using a local cheat, it appears as garbled code. After transcoding the file stream to UTF-8, it can be displayed normally.
Path.utf8(file) -
When adding subtitles online, it appears as garbled text.
new MediaItem.SubtitleConfiguration.Builder(Uri.parse(getUrl())).setLabel(getName()).setMimeType(getFormat()).setSelectionFlags(getFlag()).setLanguage(getLang()).build();
file :
The provided file is an SRT file. I agree with https://github.com/androidx/media/issues/2167#issuecomment-2736041777, this is a duplicate of https://github.com/google/ExoPlayer/issues/3644. I will close that and use this to track it instead, to move it to this issue tracker.
The provided file is an SRT file. I agree with https://github.com/androidx/media/issues/2167#issuecomment-2736041777, this is a duplicate of https://github.com/google/ExoPlayer/issues/3644. I will close that and use this to track it instead, to move it to this issue tracker.
- Is there a planned solution?
- It has been a long time.
- Is there a planned solution?
Plans have not changed since https://github.com/google/ExoPlayer/issues/3644#issuecomment-565503504, in particular this sentence is still true:
It's unlikely we'll find the time to add this support any time soon - but we would accept a high quality PR adding this.