media/library/common
ibaker e0a9540cd3 Mark MediaItem.Subtitle.mimeType as @Nullable
The MIME type is currently required to select a SubtitleDecoder
implementation in the TextRenderer. Future changes might remove this
requirement, so we pre-emptively mark the field as @Nullable.

The change in SingleSampleMediaSource ensures the track still maps to
the TextRenderer, otherwise it shows up as unmapped. Passing null MIME
type to MediaItem.Subtitle constructor now results in this from
EventLogger:

TextRenderer [
  Group:0, adaptive_supported=N/A [
    [ ] Track:0, id=null, mimeType=text/x-unknown, language=en, supported=NO_UNSUPPORTED_TYPE
  ]
]

PiperOrigin-RevId: 398010809
2021-09-23 14:49:15 +01:00
..
src Mark MediaItem.Subtitle.mimeType as @Nullable 2021-09-23 14:49:15 +01:00
build.gradle Deprecate all methods on C and move them to Util 2021-09-07 17:56:41 +01:00
proguard-rules.txt Refine ProGuard config workaround for Function 2021-02-03 15:03:07 +00:00
README.md Split out extractor and common modules 2020-01-24 18:15:19 +00:00

ExoPlayer common library module

Common code used by other ExoPlayer modules.

  • Javadoc: Note that this Javadoc is combined with that of other modules.