Skip to content
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

Source error: Loading finished before preparation is complete #92

Closed
taichanvn opened this issue May 12, 2020 · 7 comments
Closed

Source error: Loading finished before preparation is complete #92

taichanvn opened this issue May 12, 2020 · 7 comments
Assignees
Labels
1 backlog bug Something isn't working

Comments

@taichanvn
Copy link

These errors occur when playing this audio:

E/ExoPlayerImplInternal(24663): Source error
E/ExoPlayerImplInternal(24663):   com.google.android.exoplayer2.ParserException: Loading finished before preparation is complete.
E/ExoPlayerImplInternal(24663):       at com.google.android.exoplayer2.source.ProgressiveMediaPeriod.maybeThrowPrepareError(ProgressiveMediaPeriod.java:236)
E/ExoPlayerImplInternal(24663):       at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:619)
E/ExoPlayerImplInternal(24663):       at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:329)
E/ExoPlayerImplInternal(24663):       at android.os.Handler.dispatchMessage(Handler.java:103)
E/ExoPlayerImplInternal(24663):       at android.os.Looper.loop(Looper.java:224)
E/ExoPlayerImplInternal(24663):       at android.os.HandlerThread.run(HandlerThread.java:67)
E/AudioPlayer(24663): TYPE_SOURCE: Loading finished before preparation is complete.
I/flutter (24663): com.google.android.exoplayer2.ParserException: Loading finished before preparation is complete.

This error can be reproduced using the example project, just change the audio url to the link above.

@taichanvn taichanvn added 1 backlog bug Something isn't working labels May 12, 2020
@ryanheise
Copy link
Owner

There is an open issue with ExoPlayer regarding this: google/ExoPlayer#7230

@ryanheise
Copy link
Owner

A bug fix has been committed in the dev-v2 branch of ExoPlayer:

google/ExoPlayer@3474c39

I'll wait for an official ExoPlayer release but for anyone who needs this urgently, you may be able to do a JitPack dependency of it.

@chitgoks
Copy link

im guessing this is out now?

@ryanheise
Copy link
Owner

@chitgoks there's a good chance this is fixed in 0.6.0. If you test it, please let me know how it goes.

@chitgoks
Copy link

sorry my bad. im in the wrong page. i was looking for the error message specifically but its from a different lib.

@ryanheise
Copy link
Owner

No worries @chitgoks .Something good came of it.

@taichanvn I just tested this issue with the latest version of just_audio, and the issue is now fixed! Hence, I'll close the issue ;-)

@github-actions
Copy link

github-actions bot commented Nov 5, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants