media/library
ibaker c50084e7ba Replace Util.toLowerInvariant() with Ascii.toLowerCase()
Even when fixed to the US locale (and thus avoiding surprising behaviour
in e.g. Turkish locale with "i" and "I") there are unexpected behaviours
when upper and lower casing non-ASCII characters.

For example it's sometimes not symmetric, e.g.:
"ẞ".toLowerCase() -> "ß"
"ß".toUpperCase() -> "SS"

In all the ExoPlayer usages we are either dealing with known-ASCII
strings (e.g. MIME types) or comparing against ASCII constant strings
anyway, so it seems easier to just use Guava's ASCII-only class in these
cases.

This change also includes some null-twiddling, because
Util.toLowerInvariant() is null tolerant, while Ascii.toLowerCase() is
not. Most of the usages were already non-null, and it was easy enough to
change the remaining ones to be so by simple reordering of statements.

I'll make an equivalent change for Util.toUpperInvariant() next.

PiperOrigin-RevId: 368419813
2021-04-15 10:51:48 +01:00
..
all Add Transformer "Getting started" page 2021-02-03 15:03:16 +00:00
common Replace Util.toLowerInvariant() with Ascii.toLowerCase() 2021-04-15 10:51:48 +01:00
core Replace Util.toLowerInvariant() with Ascii.toLowerCase() 2021-04-15 10:51:48 +01:00
dash Replace Util.toLowerInvariant() with Ascii.toLowerCase() 2021-04-15 10:51:48 +01:00
extractor Update internal codebase location for flac extension 2021-04-14 11:42:51 +01:00
hls Replace Util.toLowerInvariant() with Ascii.toLowerCase() 2021-04-15 10:51:48 +01:00
smoothstreaming Add common prefix to loader thread names 2021-02-11 12:05:06 +00:00
transformer SampleStream/SampleQueue: Introduce read flags 2021-03-24 18:03:28 +00:00
ui Pause and resume GLSurfaceView instances in player views 2021-04-13 14:59:17 +01:00
README.md Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00

ExoPlayer library

The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.