-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExoPlayer can't play FLAC file but native MediaPlayer can #3738
Comments
Hi @Khang-NT, We don't use platform FLAC decoder so you have to use the extension. I tried the flac file you shared on Android 5 (Nexus 6) with the latest demo app, it plays fine. Please retry on a different device. As you can see in the issue #1808, as your file doesn't have a seek table, unfortunately you can't seek in exoplayer currently. |
Hi, thanks for your response. |
It isn't possible use the platform library: Is the Android 5.1 device able to play other audio files using exoplayer? |
Output of |
I guess the noise sound is only in MediaTek devices. |
I have the same problem in Oppo R9tm Android 5.1 (MTK) phone! |
I'm aware that this issue is quite old, so sorry for the delay. But it looks as if the FLAC extension doesn't work on these devices? This sounds odd given that the whole purpose of these extension decoders is to provide a consistent experience across all devices. We should probably get hold of one of the devices to test what's happening. @andrewlewis Are you aware of any similar issues with the software decoders? |
Hi guys, The error is Note: on Android 6.0 the error is different, which is another problem i guess... |
The FLAC extension should work from API level 16 onwards. The only reasons reasons I can think of for getting noise output are (1) the device's raw decoder @balflear If the FLAC extension is set up correctly and you're playing a valid FLAC stream, the exception about "None of the available extractors ..." is unexpected. Behavior should not depend on the device's Android version. Please double check you are using a demo build variant that includes extensions and have followed the steps to build libflac in the extension readme. If you're still stuck after doing that, please provide a link to the media so we can try to reproduce here. |
Hey @Khang-NT. We need more information to resolve this issue but there hasn't been an update in 14 days. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Issue description
I can't play this FLAC file with ExoPlayer: Download link - Drive
It says:
I used ExoPlayer without FLAC extension and this error occurs. FLAC codec is supported on Android 3.1+ which mentioned in Android - Supported Media Formats so it can play perfectly with
MediaPlayer
(I tested in my devices Android 5.1 and 7.0).I also tried ExoPlayer with FLAC extension, on Android 5.1 device it plays nothing but noise sound, on Android 7.0 device it can play sound correctly, but I can't seek ( similar with #1808). Note: I can play with native MediaPlayer and seekable as well on both Android 5.1 and 7.0.
Reproduction steps
Link to test content
https://drive.google.com/open?id=1_ykCaUovTcHwsGwNnQpO1k-lVEKKY03G
Version of ExoPlayer being used
I'm using
2.6.0
.Device(s) and version(s) of Android being used
Samsung s7 Android 7.0.
Tablet (unknown name) Android 5.1
A full bug report captured from the device
The text was updated successfully, but these errors were encountered: