use of net.robinfriedli.aiode.audio.spotify.SpotifyUri in project aiode by robinfriedli.
the class AbstractPlayableLoadingCommand method loadSpotifyUri.
private void loadSpotifyUri(AudioManager audioManager) throws Exception {
SpotifyUri spotifyUri = SpotifyUri.parse(getCommandInput());
SpotifyService spotifyService = getContext().getSpotifyService();
PlayableFactory playableFactory = audioManager.createPlayableFactory(getSpotifyService(), trackLoadingExecutor);
List<Playable> playables = spotifyUri.loadPlayables(playableFactory, spotifyService, shouldRedirectSpotify(), mayInterrupt);
handleResults(playables);
loadedAmount = playables.size();
}
Aggregations