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

MediaItemFinished randomly fires when switching songs sometimes #842

Open
7 tasks
jimdog1001 opened this issue Oct 16, 2021 · 0 comments
Open
7 tasks

MediaItemFinished randomly fires when switching songs sometimes #842

jimdog1001 opened this issue Oct 16, 2021 · 0 comments

Comments

@jimdog1001
Copy link

🐛 Bug Report

im using xamarin forms and testing on Android. I have 4 buttons and each time i click the button to play a song, i call the media player to play it. I also have an event to listen for when the song ends, which is working as expected. What is not working correctly is that sometimes, when switching songs, the event gets triggered even though a media item hasn't finished.

Expected behavior

should only fire when the song ends

Reproduction steps

have buttons that play different songs, i have 4 in mine. Set up and mediaItemFinished event and have it do something when the song ends. Start switching songs by clicking on different buttons and notice that the mediaItemFinshed event is executing code when it shouldnt be.

Configuration

Version: 1.x

Platform:

  • 📱 iOS
  • 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant