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

Bug: Audio glitches on play/stop on Android #16

Closed
ryanheise opened this issue Dec 29, 2019 · 7 comments
Closed

Bug: Audio glitches on play/stop on Android #16

ryanheise opened this issue Dec 29, 2019 · 7 comments
Assignees

Comments

@ryanheise
Copy link
Owner

The glitch on play is a matter of the initial data coming out of MediaExtractor being a bit funky. I might need to grab the extractors from ExoPlayer.

@ryanheise ryanheise self-assigned this Dec 29, 2019
@ryanheise
Copy link
Owner Author

This is now resolved by #19 .

@rohansohonee
Copy link

@ryanheise
There is still a glitch when running latest commit with exoplayer:

audioPlayer.play();
await audioPlayer.seek(Duration(milliseconds: position);

I am trying to start playing the audio file from a particular position, but the audio glitches and then continues playing from the specified position. There is a slight, but noticeable glitch. This glitch causes an unpleasant cross fading of audio. It is not transitioning smoothly.

@ryanheise
Copy link
Owner Author

What if you seek before playing?

@rohansohonee
Copy link

rohansohonee commented Jan 1, 2020

Same thing happens.
Calling play() always causes a very minor glitch and it's noticeable when cross fading audio.

@ryanheise
Copy link
Owner Author

I don't know if there's anything I can do about that since it now appears to be within ExoPlayer.

@rohansohonee
Copy link

How do I cross fade between tracks then??
I will try to figure it out.

@github-actions
Copy link

github-actions bot commented Nov 8, 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 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants