media/library
samrobinson 5438e6cdb4 Only init SpeedChangingAudioProcessor if Format.Metadata not null.
If the Metadata passed to SegmentSpeedProvider is null, then the
SegmentSpeedProvider will always return 1f from getSpeed.

Initializing a SpeedChangingAudioProcessor requires a SpeedProvider.
Once configured,this audioProcessor is always active, so buffers are
passed through it. Because getSpeed is always 1, the processor performs
a no-op, but still has to do a buffer copy for each buffer.

By not initializing the audio processor when metadata is null, this
copy can be skipped and the audio pipeline is more performant.

Note: This change does not affect the multiple media-item case, which
is not supported with speed changes, as per Transformer API
documentation.
PiperOrigin-RevId: 513261811
2023-03-02 08:13:34 +00:00
..
all Fix minimum API level issue 2022-02-08 11:03:36 +00:00
common Remove @see tags with <a> tags 2023-03-01 18:02:43 +00:00
core Remove @see tags with <a> tags 2023-03-01 18:02:43 +00:00
dash Merge pull request #248 from lemondoglol:update-segment-size 2023-02-08 15:38:48 +00:00
database Reformat some javadoc 2022-02-18 15:02:33 +00:00
datasource Create DataSourceBitmapLoader 2023-03-01 17:26:55 +00:00
decoder Expect PresentationTime Discontinuity During Stream Transitions 2022-04-26 14:25:46 +01:00
effect Increase GL release timeout to 500 ms 2023-03-01 17:34:49 +00:00
extractor Merge pull request #255 from mayurk2:use_edts_offset_if_it_is_for_entire_file 2023-03-01 18:10:49 +00:00
hls Update SampleQueue.sourceId to be a long rather than an int. 2023-02-14 16:06:47 +00:00
rtsp Catch IllegalArgumentExceptions in RTSP Response parsing 2023-02-13 14:18:53 +00:00
smoothstreaming Remove @see tags with <a> tags 2023-03-01 18:02:43 +00:00
transformer Only init SpeedChangingAudioProcessor if Format.Metadata not null. 2023-03-02 08:13:34 +00:00
ui Update translations 2023-03-01 17:46:46 +00:00
README.md Update to androidx.media3 2021-10-27 09:12:46 +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.