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

Player state is wrong (PLAYING but it is not playing) #961

Closed
tamoyal opened this issue Jul 23, 2021 · 2 comments
Closed

Player state is wrong (PLAYING but it is not playing) #961

tamoyal opened this issue Jul 23, 2021 · 2 comments
Labels
bug platform-ios Affects the ios platform stale Automatically close this issue, if no activity is recognized waiting for report Wait for the author to respond to the conversation

Comments

@tamoyal
Copy link

tamoyal commented Jul 23, 2021

While I cannot easily reproduce, I can confidently say the player state is sometimes wrong.

Full Description
My app relies on the player state to decide if it should let other audio play.

print(audioPlayer.state)
if (audioPlayer.state == PlayerState.PLAYING) {
  return;
}
...play audio here

However I notice it sometimes gets "stuck." While this is probably a sign I should change my design, I printed the state above the check and see this: PlayerState.PLAYING. My audio files are maximum 20 seconds so for sake of illustrating that the state is definitely wrong, I can wait 5 minutes, press the play button again and it will print the state is PlayerState.PLAYING before I get to any code that plays it.

iOS 14.6
Flutter 2.2.3 (stable)
This plugin: 0.19.1

@Gustl22
Copy link
Collaborator

Gustl22 commented Sep 27, 2022

Can you recheck with audioplayers: ^1.1.0?

@Gustl22 Gustl22 added waiting for report Wait for the author to respond to the conversation platform-ios Affects the ios platform stale Automatically close this issue, if no activity is recognized labels Sep 27, 2022
@Gustl22
Copy link
Collaborator

Gustl22 commented Nov 3, 2022

Closing as stale.

@Gustl22 Gustl22 closed this as completed Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug platform-ios Affects the ios platform stale Automatically close this issue, if no activity is recognized waiting for report Wait for the author to respond to the conversation
Projects
None yet
Development

No branches or pull requests

2 participants