title: Working with exoPlayer in android, lot of questions
body: <p>I am switching from mediaplayer to exoplayer in my project and because there is few documentation I wanted to ask some questions here.</p>
  
  <p>I successfully created the player:</p>
  
  <pre><code>   exoPlayer = ExoPlayer.Factory.newInstance(1);
     playerControl = new PlayerControl(exoPlayer);
  </code></pre>
  
  <p>and the music starts playing when I click on my music list:</p>
  
  <pre><code>    musicList.addOnItemTouchListener(
              new RecyclerItemClickListener(getApplicationContext(), new RecyclerItemClickListener.OnItemClickListener() {
                  @Override
                  public void onItemClick(View view, final int position) {
  
                      mediaController.show(0);
  
                      currentPosition = position;
                      URL = musicUrl.get(position);
  
                      Uri uri = Uri.parse(URL);
  
                      sampleSource = new DefaultSampleSource(new FrameworkSampleExtractor(getApplicationContext(), uri, null), 2);
                      audioRenderer = new MediaCodecAudioTrackRenderer(sampleSource, null, true);
  
                      exoPlayer.prepare(audioRenderer);
                      exoPlayer.setPlayWhenReady(true);
  
                  }
              })
      );
  </code></pre>
  
  <p>The problem is I don't know how to change the music if I click on another track on the list, if the track number 2 is playing if I click on track numer 6 to change to it.If anyone can guide me with this problem it will be perfect.</p>
  
  <p>I really readed all topics from stackoverflow and I can't find the solution in theyr demo app because there is playing only 1 track, they don't change it.</p>