code: public int getPlayingPosition()
  	{
  		if (playerThread!=null)
  		{
  			final Mixer mixer = playerThread.getCurrentMixer();
  			if (mixer!=null && mixer instanceof ModMixer)
  			{
  				final BasicModMixer modMixer = ((ModMixer)mixer).getModMixer();
  				if (modMixer!=null) return modMixer.getCurrentPatternPosition();
  			}
  		}
  		return -1;
  	}
docs: PLAYER INFO METHOD FOR JAVASCRIPT