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)
- 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
- [just_audio] iOS isn't reconnecting to live streams, but Android does. HOT 2
- Unhandled Exception: Loading interrupted HOT 2
- Unhandled Exception: Loading interrupted HOT 2
- Unhandled Exception: Loading interrupted HOT 3
- in honor magic5 ,android system music play bar can stop,but can not replay,in another device oneplus 8t ,it works HOT 1
- [AudioPlayer onComplete:] + 752
- AAC encoded m4a recorded on Android file can't play on Ios(-11800) The operation could not be completed) HOT 2
- MissingPluginException(No implementation found for method load on channel com.ryanheise.just_audio.methods.9fa181e4-a115-4d9c-8bcc-2029bdac1054) HOT 2
- MissingPluginException(No implementation found for method load on channel com.ryanheise.just_audio.methods.9fa181e4-a115-4d9c-8bcc-2029bdac1054 HOT 2
- Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 33 declared in library [:audio_session] HOT 2
- Playing audio files on iOS that were saved on Android does not work. HOT 6
- MissingPluginException (MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods) HOT 2
- [MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods)] HOT 2
- MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods) HOT 2
- Unable to Adjust Volume on iOS Browsers Using just_audio Library HOT 2
- Unable to Adjust Volume on iOS Browsers Using just_audio Library HOT 1
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.