mirror of
https://github.com/androidx/media.git
synced 2025-05-07 23:50:44 +08:00

The previous code led me to misread this stack trace as a null pointer exception, but it's really an index out of bounds exception: ``` Caused by: androidx.media3.exoplayer.upstream.Loader$UnexpectedLoaderException: Unexpected IllegalArgumentException: null at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:435) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at java.lang.Thread.run(Thread.java:1012) Caused by: java.lang.IllegalArgumentException at androidx.media3.common.util.Assertions.checkArgument(Assertions.java:40) at androidx.media3.common.util.ParsableByteArray.setPosition(ParsableByteArray.java:164) at androidx.media3.extractor.text.cea.Cea608Parser.parse(Cea608Parser.java:440) ``` PiperOrigin-RevId: 592876546
ExoPlayer module
This module provides ExoPlayer
, the Player
implementation for local media
playback on Android.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'androidx.media3:media3-exoplayer:1.X.X'
where 1.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.