Problem with playing online audio using minim

I tried to loadsample with an URL using Minim, but the sound can’t be loaded. Anyone has an idea? Thanks in advance!

minim = new Minim(this);
sample = minim.loadFile(“”, 2048);

I wasn’t able to play the sound either.

Maybe it’s because the internet site is protected against non-browser programs.

It might work if you download the MP3, store locally and play from there.

Hey, and welcome to the forum!

Great to have you here!

Warm regards,


This works by the way:

import ddf.minim.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
import ddf.minim.signals.*;
import ddf.minim.spi.*;
import ddf.minim.ugens.*;

void setup() {
  size(800, 880);

  Minim  minim = new Minim(this);
  AudioPlayer sample = minim.loadFile("");

void draw() {