-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
Description
Hi, we are moving from MediaPlayer to ExoPlayer but when we try to play the attached file ExoPlayer fails with the following exception. The same file is succesfully played with MediaPlayer. ExoPlayer plays all other files successfully, but there is a problem with this file.
ExoPlayer version: 2.5.3
TEsted on: 1. Android-26 (X86 Emulator) 2. Samsung Galaxy J7 (SM-J710FQ) Android 7.0
ExoPlayer is created with default settings:
m_BandwidthMeter = new DefaultBandwidthMeter();
m_VideoTrackSelectionFactory =
new AdaptiveTrackSelection.Factory(m_BandwidthMeter);
// Produces DataSource instances through which media data is loaded.
String appName = getApplicationContext().getPackageName();
m_DataSourceFactory = new DefaultDataSourceFactory(this,
Util.getUserAgent(this, appName), m_BandwidthMeter );
// Produces Extractor instances for parsing the media data.
m_ExtractorsFactory = new DefaultExtractorsFactory();
m_TrackSelector = new DefaultTrackSelector( m_VideoTrackSelectionFactory);
m_VideoPlayer = ExoPlayerFactory.newSimpleInstance(this, m_TrackSelector );
I/ExoPlayerImpl: Init 7b1e44d [ExoPlayerLib/2.5.3] [generic_x86, Android SDK built for x86, Google, 26]
E/ExoPlayerImplInternal: Source error.
java.io.EOFException
at com.google.android.exoplayer2.extractor.DefaultExtractorInput.readFromDataSource(DefaultExtractorInput.java:262)
at com.google.android.exoplayer2.extractor.DefaultExtractorInput.readFully(DefaultExtractorInput.java:70)
at com.google.android.exoplayer2.extractor.DefaultExtractorInput.readFully(DefaultExtractorInput.java:79)
at com.google.android.exoplayer2.extractor.mp4.Mp4Extractor.readAtomPayload(Mp4Extractor.java:266)
at com.google.android.exoplayer2.extractor.mp4.Mp4Extractor.read(Mp4Extractor.java:147)
at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:704)
at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:315)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Reactions are currently unavailable