title: Android Exoplayer : What is 'playWhenReady' in "onPlayerStateChanged(boolean playWhenReady, int playbackState)" method
body: <pre><code>@Override
  public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {
      switch (playbackState) {
          case Player.STATE_IDLE:  **//1.When this happens ?**
  
              if (playWhenReady==false) {  **//2.What "playWhenReady" indicate ?**
  
                  **//3.When this condition occur ?**
              }
              else{
                  **//4.When this condition occur ?**
              }
              break;
      }
  }
  </code></pre>
  
  <p>What is '<strong>playWhenReady</strong>' in "<strong>onPlayerStateChanged(boolean playWhenReady, int playbackState)</strong>" method ? &amp; When does player goes to '<strong>Player.STATE_IDLE</strong>'? When does all four Stages mention in given code occurs ?</p>