function playNow(song) {
		/*
  	Makes sure the song object has a URL associated with it
  	or there will be nothing to play.
  */
		if (song.url) {
			_config2.default.active_song.src = song.url;
			_config2.default.active_metadata = song;
			_config2.default.active_album = song.album;
		} else {
			/*
   	Write error message since the song passed in doesn't
   	have a URL.
   */
			_helpers2.default.writeDebugMessage('The song needs to have a URL!');
		}

		/*
  	Sets the main song control status visual
  */
		_visual2.default.syncMainPlayPause('playing');

		/*
  	Update the song meta data
  */
		_visual2.default.displaySongMetadata();

		/*
  	Reset the song sliders, song progress bar info, and
  	reset times. This ensures everything stays in sync.
  */
		_visual2.default.resetSongSliders();

		_visual2.default.resetSongPlayedProgressBars();

		_visual2.default.resetTimes();

		/*
  	Plays the song.
  */
		play();
	}
/**
  * When you pass a song object it plays that song right awawy.  It sets
  * the active song in the config to the song you pass in and synchronizes
  * the visuals.
  *
  * Public Accessor: Amplitude.playNow( song )
  *
  * @access public
  * @param {object} song - JSON representation of a song.
  */
When you pass a song object it plays that song right awawy.  It sets
the active song in the config to the song you pass in and synchronizes
the visuals.

Public Accessor: Amplitude.playNow( song )

@access public
@param {object} song - JSON representation of a song.
When you pass a song object it plays that song right awawy . It sets the active song in the config to the song you pass in and synchronizes the visuals . Public Accessor : Amplitude . playNow ( song ) @access public @param { object } song - JSON representation of a song .
function playNow(song) {
		if (song.url) {
			_config2.default.active_song.src = song.url;
			_config2.default.active_metadata = song;
			_config2.default.active_album = song.album;
		} else {
			_helpers2.default.writeDebugMessage('The song needs to have a URL!');
		}
		_visual2.default.syncMainPlayPause('playing');
		_visual2.default.displaySongMetadata();
		_visual2.default.resetSongSliders();
		_visual2.default.resetSongPlayedProgressBars();
		_visual2.default.resetTimes();
		play();
	}
function playNow ( song ) { if ( song . url ) { _config2 . default . active_song . src = song . url ; _config2 . default . active_metadata = song ; _config2 . default . active_album = song . album ; } else { _helpers2 . default . writeDebugMessage ( 'The song needs to have a URL!' ) ; } _visual2 . default . syncMainPlayPause ( 'playing' ) ; _visual2 . default . displaySongMetadata ( ) ; _visual2 . default . resetSongSliders ( ) ; _visual2 . default . resetSongPlayedProgressBars ( ) ; _visual2 . default . resetTimes ( ) ; play ( ) ; }
When you pass a song object it plays that song right awawy.
When you pass a song object it plays that song right awawy .
/*
  	Makes sure the song object has a URL associated with it
  	or there will be nothing to play.
  */ /*
   	Write error message since the song passed in doesn't
   	have a URL.
   */ /*
  	Sets the main song control status visual
  */ /*
  	Update the song meta data
  */ /*
  	Reset the song sliders, song progress bar info, and
  	reset times. This ensures everything stays in sync.
  */ /*
  	Plays the song.
  */