Comments (12)
I think in the time since this feature request was made, ExoPlayer (the underlying Android library from Google that provides the Android audio playing capabilities) has undergone a lot of improvements. But if FLAC has any issue still, I think it's due to the FLAC support from ExoPlayer itself. You could try submitting a bug report with ExoPlayer with that specific FLAC file. In terms of a minimal reproduction project, I think they have an official example and you can just switch in your FLAC file for one of the existing MP3 URLs in that sample code.
from just_audio.
I will fill a PR if it's fix. I will let you know if it's not ;) !
from just_audio.
That's fine. If it involves changes to the code, leave it to me and I'll upgrade everything.
from just_audio.
Some of my research notes for iOS:
- FlacDecoder.m requires libFLAC
- OpusFileDecoder.m
from just_audio.
Flac work but something got this kind of errors on Android:
2
W/DefaultLoadControl(12906): Target buffer size reached with less than 500ms of buffered media data.
E/ExoPlayerImplInternal(12906): Playback error
E/ExoPlayerImplInternal(12906): com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
E/ExoPlayerImplInternal(12906): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:608)
E/ExoPlayerImplInternal(12906): at android.os.Handler.dispatchMessage(Handler.java:103)
E/ExoPlayerImplInternal(12906): at android.os.Looper.loop(Looper.java:214)
E/ExoPlayerImplInternal(12906): at android.os.HandlerThread.run(HandlerThread.java:67)
E/ExoPlayerImplInternal(12906): Caused by: java.lang.IllegalStateException: Playback stuck buffering and not loading
E/ExoPlayerImplInternal(12906): at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1046)
E/ExoPlayerImplInternal(12906): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:482)
E/ExoPlayerImplInternal(12906): ... 3 more
E/AudioPlayer(12906): TYPE_UNEXPECTED: Playback stuck buffering and not loading
But when I use the same with mp3 everything works fine.
from just_audio.
Alright thanks, I will investigate on the ExoPlayer itself.
from just_audio.
I just test the Flac demo on the Exoplayer, and the buffering was OK. I think it's probably because the just_audio is on 2.15.0.
I will try to use the lastest version of ExoPlayer the 2.17.1
https://mvnrepository.com/artifact/com.google.android.exoplayer/exoplayer
from just_audio.
Sounds like a plan. Please let me know how it goes, and if it solves the FLAC problem, I'll update the plugin's version.
from just_audio.
Seems to be more complicated than I think. Got a lot of deprecation, and 2 failures when trying to run the example/android
. I will need more time to configure the project to be able to debug it. Can you try to upgrade to 2.17.1
in your side ?
from just_audio.
So I will let you change the version ;) !
from just_audio.
Just to update, I have migrated to ExoPlayer 2.17.1 in the latest commit on branch fix/flutter3
. Note that this version of ExoPlayer contains enough methods that you'll probably get a trigger to use multidex.
from just_audio.
That branch has now been merged and published to pub.dev.
from just_audio.
Related Issues (20)
- [Android] Sound stops playing when backgrounding app and letting phone go to sleep HOT 2
- Track completes too eary HOT 10
- "Getting 'type 'Null' is not a subtype of type 'MediaItem' error with Just Audio Background package' HOT 2
- 22 kHz mono mp3s have wrong duration and seek behavior HOT 7
- Error during file preparation on Android 6 when playing MP3 files: "setConfig(1 .mp3.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)" HOT 2
- Error during file preparation on Android 6 when playing MP3 files HOT 4
- Compile WEB release plugin dosent work HOT 2
- Compile WEB release plugin dosent work HOT 6
- Sound is not played on iOS 17.5.1 in background HOT 2
- PlatformException(561017449, The operation couldn't be completed. (OSStatus error 561017449.), null, null) 👉 IOS HOT 2
- Support rxdart 0.28.0 HOT 1
- PlatformException(561017449, The operation couldn't be completed. (OSStatus error 561017449.), null, null) //IOS BUG HOT 2
- Incorrect AudioPlayer Position data on Android HOT 1
- Command failed for android_media_AudioSystem_error_callback: -32, AudioFlinger server died & AudioPolicyService server died. HOT 2
- Error when streaming on iOS or MacOS HOT 2
- AudioSource.uri does not set dynamically headers HOT 1
- Pause ,Stop or any other functions not working while play function called HOT 2
- No longer maintained packages in the readme HOT 6
- sound cuts out HOT 2
- How can get the current playing position? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just_audio.