title: How to set progress to specific position of exo_progress of ExoPlayer in RecyclerView?
body: <p>I want UI Something like the attached screenshot.</p>
  <p><a href="https://i.stack.imgur.com/CIfuj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CIfuj.png" alt="enter image description here" /></a></p>
  <p>This all will be a list of mp3 audio, which is user has played at some point already and left in middle.</p>
  <p>I am using <code>ExoPlayer</code> for mp3 and <code>PlayerControlView</code> for UI. I have to take a separate <code>DefaultTimeBar</code> view of exoplayer for each item of recyclerview, and manage it with conditions. As I have taken one instance of exoplayer throughout the app.</p>
  <p><strong>Problem:</strong></p>
  <p>When I am playing one item, It will work fine with that item but also started seeking for all the items together.</p>
  <p><a href="https://i.stack.imgur.com/RniLl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RniLl.png" alt="enter image description here" /></a></p>
  <p>Here is my Logic in RecyclerViewAdapter:</p>
  <pre><code>        if (data.isPlaying) {
              player?.let {
                  // Setting Player to UI
                  playerView.player = it
              }
          } else {
              player?.let {
                  // Setting Player to UI
                  playerView.player = it
                  
                  // Set progress bar to the previously player position
                  playerView.findViewById&lt;DefaultTimeBar&gt;(R.id.exo_progress).apply {
                      setPosition(alreadyPlayedPosition ?: 0)
                  }
              }
          }
  </code></pre>
  <p>Can Anyone have an idea about this? Or can suggest any other way.</p>
  <p>Thanks in Advance!</p>