function() {
      if (p.currentSession.playerState === 'PLAYING') {
        p.pause();
      } else if (p.currentSession.playerState === 'PAUSED') {
        p.play();
      }
    }
function() {
      if (p.currentSession.playerState === 'PLAYING') {
        p.pause();
      } else if (p.currentSession.playerState === 'PAUSED') {
        p.play();
      }
    }
function ( ) { if ( p . currentSession . playerState === 'PLAYING' ) { p . pause ( ) ; } else if ( p . currentSession . playerState === 'PAUSED' ) { p . play ( ) ; } }
toggle between play / pause
toggle between play / pause