-
Notifications
You must be signed in to change notification settings - Fork 575
Open
Labels
Description
Version
Media3 1.7.1 (same as 1.6.1)
More version details
I also tried the main branch yesterday, and it didn't work.
Devices that reproduce the issue
Pixel 4a running Android 13 and most devices
Devices that do not reproduce the issue
Realme V20 RMX3611
Reproducible in the demo app?
Yes
Reproduction steps
-
Add dependencies:
implementation("androidx.media3:media3-exoplayer:1.7.1") implementation("androidx.media3:media3-exoplayer-dash:1.7.1") implementation("androidx.media3:media3-ui:1.7.1")
-
Run the code:
val player = ExoPlayer.Builder(this).build() binding.viewPlayer.player = player val mediaItem = MediaItem.fromUri(getResourceUri(R.raw.video)) player.setMediaItem(mediaItem) player.prepare() player.play()
-
Get the log:
ExoPlayerImplInternal E Playback error (Ask Gemini) androidx.media3.exoplayer.ExoPlaybackException: Source error at androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:864) at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:834) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.os.HandlerThread.run(HandlerThread.java:67) Caused by: androidx.media3.exoplayer.source.UnrecognizedInputFormatException: None of the available extractors (FlvExtractor, FlacExtractor, WavExtractor, FragmentedMp4Extractor, Mp4Extractor, AmrExtractor, PsExtractor, OggExtractor, TsExtractor, MatroskaExtractor, AdtsExtractor, Ac3Extractor, Ac4Extractor, Mp3Extractor, AviExtractor, JpegExtractor, PngExtractor, WebpExtractor, BmpExtractor, HeifExtractor, AvifExtractor) could read the stream. {contentIsMalformed=false, dataType=1} at androidx.media3.exoplayer.source.BundledExtractorsAdapter.init(BundledExtractorsAdapter.java:108) at androidx.media3.exoplayer.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1124) at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:453) 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)
Expected result
The media plays successfully.
Actual result
The media won't play.
Media
The media was taken by the system camera.
https://drive.google.com/file/d/1eUNXMdwxsgRHnVJSPfQTtD91TmQPfYO8/view?usp=sharing
Bug Report
- You will email the zip file produced by
adb bugreport
to android-media-github@google.com after filing this issue.