title: Playing pausing and stopping sounds with soundcloud javascript sdk
body: <p>my sound is playing when i click the button but it doesnt pause or stop when i reclick it. The alert showing the else block is working however so i'm thinking its the second sc.stream. see code below:</p>
  
  <pre><code>var i = $('.song').attr('id');
  var is_playing = false;
  
  $('.song').click(function(){
      if(is_playing == false){
          SC.stream('/tracks/'+i).then(function(player){
              player.play();
          });
          is_playing = true;
      } else {
          SC.stream('/tracks/'+i).then(function(player){
              player.pause();
          });
          alert('This alert works when is_playing is true');
          is_playing = false;
      }
  });
  </code></pre>