7

What I'm trying to do is something like the image below. voices notes inside a recyclerView using MediaPlayer.

enter image description here

Audio should play when the play button is pressed and when the audio ends set the seek bar to 0 and stop the player.

The application should also avoid playing audio simultaneously if an audio note is playing and the user tries to play a new one.how can I do something like that? should I create a MediaPlayer every time the user clicks on the play button or always use the same player?

Usman Ali
  • 425
  • 1
  • 9
  • 31
Mike-OS
  • 163
  • 1
  • 13
  • I Think Blow Link Help You: [https://stackoverflow.com/questions/69024917/media-player-in-recyclerview-play-at-the-same/69083122#69083122](https://stackoverflow.com/questions/69024917/media-player-in-recyclerview-play-at-the-same/69083122#69083122) – peyman Sep 10 '21 at 19:59
  • @Mike-OS Did you got a solution for this – KJEjava48 Jan 13 '22 at 08:58

0 Answers0