


I feel like my main problem is that I'm not sure how to find the audioSessionId that Spotify is playing on, and because Spotify's android-streaming-sdk is in beta (and not mentioned on their website) there is virtually no documentation on it from what I can see on Github. Please let me know if you have suggestions or an alternative to using Android's Visualizer library. However, if I switch the audioSessionId to 0 (which should listen to all the audio sessions mixed from what I understand) it crashes with this error: E/AudioEffect: set(): AudioFlinger could not create effect, status: -1Į/visualizers-JNI: Visualizer initCheck failed -3Į/Visualizer-JAVA: Error code -3 when initializing Visualizer.Īccording to their documentation that error means: Operation failed due to bad object initialization. This makes me thing that the audio sessionId is not the same one as Spotify is playing on. If I run this, everything compiles and runs okay, but the visualizer does not pick up any audio. tDataCaptureListener(this, Visualizer.getMaxCaptureRate(), true, true) Visualizer = new Visualizer(audioSessionId)

Int audioSessionId = mediaPlayer.getAudioSessionId() As for audio visualization, it may not allow users to manufacture their own visuals, but does present. It is considered being one of the finest video and audio playing tools out there. Winamp has been around for as long as there have been media players. tAudioStreamType(AudioManager.STREAM_MUSIC) Visualize music from device or Spotify Fully customizable Record and share Verdict. MediaPlayer mediaPlayer = new MediaPlayer() VisualizerModel.getInstance().getTrackURI(), 0, 0) I'm having a difficult time getting Androids Visualizer library to pick up any audio from Spotify (it works fine if I use a local. I'm using Spotify's android-streaming-sdk which creates a local service (no need to have the Spotify app installed) and it plays music from within the app. I'm making an Android audio visualizer app for streaming Spotify music.
