Giter Site home page Giter Site logo

Comments (12)

ryanheise avatar ryanheise commented on July 23, 2024 1

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.

Kiruel avatar Kiruel commented on July 23, 2024 1

I will fill a PR if it's fix. I will let you know if it's not ;) !

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024 1

That's fine. If it involves changes to the code, leave it to me and I'll upgrade everything.

from just_audio.

sachaarbonel avatar sachaarbonel commented on July 23, 2024

Some of my research notes for iOS:

from just_audio.

Kiruel avatar Kiruel commented on July 23, 2024

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.

Kiruel avatar Kiruel commented on July 23, 2024

Alright thanks, I will investigate on the ExoPlayer itself.

from just_audio.

Kiruel avatar Kiruel commented on July 23, 2024

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.

ryanheise avatar ryanheise commented on July 23, 2024

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.

Kiruel avatar Kiruel commented on July 23, 2024

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.

Kiruel avatar Kiruel commented on July 23, 2024

So I will let you change the version ;) !

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024

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.

ryanheise avatar ryanheise commented on July 23, 2024

That branch has now been merged and published to pub.dev.

from just_audio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.