 Description:
[None]
JotifyConnection jotify = new JotifyConnection();
/* Login to Spotify. */
jotify.login("user", "pass");
/* Get a track reference. */
Track track = jotify.browseTrack("spotify:track:2GjycBB2VHP4NSIzUrJkrE");
/* Create an InputStream for this track (tries to use the 96 kbps stream). */
InputStream input = new SpotifyInputStream(jotify.getProtocol(), track, 96000);
/* Skip Spotify specific OGG header. */
input.skip(167);
/* Create OggPlayer and start it. */
OggPlayer player = new OggPlayer(input, null);
player.start();
 Tags: [No tags]
Posted 2010-04-06 18:36:38 GMT
Expires
never
|