I have made a music visualizer with the standard classes, but I don't know how to connect it to the music players. How do I connect the music visualizer to the common music players like Spotify and Winamp, so I can visualize the music, which comes from these players?

As it is now, I can only visualize the music from a MP3 file, which is included in the Eclipse project.