title: How to set up media player like WhatsApp voice notes (recyclerview)?
body: <p>What I'm trying to do is something like the image below. voices notes inside a <code>recyclerView</code> using <code>MediaPlayer</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/Nq0k7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Nq0k7.png" alt="enter image description here"></a></p>
  
  <p>Audio should play when the play button is pressed and when the audio ends set the seek bar to 0 and stop the player.</p>
  
  <p>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 <code>MediaPlayer</code> every time the user clicks on the play button or always use the same player?</p>