examples/player/player.js
function(index) {
    var self = this;

    // Stop the current track.
    if (self.playlist[self.index].howl) {
      self.playlist[self.index].howl.stop();
    }

    // Reset progress.
    progress.style.width = '0%';

    // Play the new track.
    self.play(index);
  }
function(index) {
    var self = this;

    // Stop the current track.
    if (self.playlist[self.index].howl) {
      self.playlist[self.index].howl.stop();
    }

    // Reset progress.
    progress.style.width = '0%';

    // Play the new track.
    self.play(index);
  }
function ( index ) { var self = this ; // Stop the current track. if ( self . playlist [ self . index ] . howl ) { self . playlist [ self . index ] . howl . stop ( ) ; } // Reset progress. progress . style . width = '0%' ; // Play the new track. self . play ( index ) ; }
Skip to a specific track based on its playlist index.
@param  {Number} index Index in the playlist.
Skip to a specific track based on its playlist index .