Package net.roarsoftware.lastfm

Examples of net.roarsoftware.lastfm.Radio


  }

  public void processSearchAndPlay(String radioToSearch) throws Exception {
    firePropertyChange(Controller.WORKING, null, true);
    Session session = login(Config.getValue(Config.USER), Config.getValue(Config.PASSWORD));
    Radio radio = tuneStation(radioToSearch, session, false);
    currentRadio = radio;
    processStop();
    continuePlaying = true;
    keepPlaying(radio, session);
  }
View Full Code Here


      LOGGER.info("Already playing, ignoring");
    } else {
      firePropertyChange(Controller.WORKING, null, true);
      Session session = login(Config.getValue(Config.USER), Config.getValue(Config.PASSWORD));
      String recentStation = getRecentStation(Config.getValue(Config.USER), session);
      Radio radio = tuneStation(recentStation, session, true);
      currentRadio = radio;
      continuePlaying = true;
      keepPlaying(radio, session);
    }
  }
View Full Code Here

    }
    return session;
  }

  private Radio tuneStation(String radioName, Session session, boolean tuneKnownRadio) throws Exception {
    Radio radio = null;
    if (tuneKnownRadio) {
      // Tune a real radio
      radio = Radio.tune(radioName, Locale.US, session);
    } else {
      // Tune for similar artists
View Full Code Here

TOP

Related Classes of net.roarsoftware.lastfm.Radio

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.