Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cf3e61ae
authored
Sep 21, 2020
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #7938 from bennettpeter:pullreq-ssa-subtitles
PiperOrigin-RevId: 332814223
parents
4aa3a048
efd5265e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/text/ssa/SsaDecoder.java
RELEASENOTES.md
View file @
cf3e61ae
...
...
@@ -7,9 +7,8 @@
*
Data sources:
*
Add support for
`android.resource`
URI scheme in
`RawResourceDataSource`
(
[
#7866
](
https://github.com/google/ExoPlayer/issues/7866
)
).
*
Core library:
*
Suppress Guava-related ProGuard/R8 warnings
(
[
#7904
](
https://github.com/google/ExoPlayer/issues/7904
)
).
*
Text:
*
Add support for
`\h`
SSA/ASS style override code (non-breaking space).
### 2.12.0 (2020-09-11) ###
...
...
library/core/src/main/java/com/google/android/exoplayer2/text/ssa/SsaDecoder.java
View file @
cf3e61ae
...
...
@@ -264,7 +264,8 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
String
text
=
SsaStyle
.
Overrides
.
stripStyleOverrides
(
rawText
)
.
replaceAll
(
"\\\\N"
,
"\n"
)
.
replaceAll
(
"\\\\n"
,
"\n"
);
.
replaceAll
(
"\\\\n"
,
"\n"
)
.
replaceAll
(
"\\\\h"
,
"\u00A0"
);
Cue
cue
=
createCue
(
text
,
style
,
styleOverrides
,
screenWidth
,
screenHeight
);
int
startTimeIndex
=
addCuePlacerholderByTime
(
startTimeUs
,
cueTimesUs
,
cues
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment