Skip to content

Playback will not stop if multiple exceptions occur in the playingPeriodHolder.prepared state #2847

@WitchReimu

Description

@WitchReimu

When I play an online MP4 video, I get an exception:

java.io.EOFException
at androidx.media3.exoplayer.source.SampleDataQueue.sampleData(SampleDataQueue.java:186)
at androidx.media3.exoplayer.source.SampleQueue.sampleData(SampleQueue.java:635)
at androidx.media3.extractor.TrackOutput.sampleData(TrackOutput.java:168)
at androidx.media3.extractor.mp4.Mp4Extractor.readSample(Mp4Extractor.java:961)
at androidx.media3.extractor.mp4.Mp4Extractor.read(Mp4Extractor.java:410)
at androidx.media3.exoplayer.source.BundledExtractorsAdapter.read(BundledExtractorsAdapter.java:147)
at androidx.media3.exoplayer.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1146)
at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:453)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)

When I turn off autoplay in EXO, the above exception recurs, consuming my phone's network data. Is there a way to destroy EXO without playing the video or prevent network requests when an exception occurs?

This issue frequently occurs with the following online MP4 video links:
https://www.maersk.com.cn/~/media_sc9/maersk/homepage/videos/all-the-way_16x9_SUBS_ENG.mp4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions