gauravk95 / audio-visualizer-android

🎵 [Android Library] A light-weight and easy-to-use Audio Visualizer for Android.
Apache License 2.0
844 stars 127 forks source link

Audio visualizer not showing the visualization even when audio session Id passed #18

Open sagarrock101 opened 3 years ago

sagarrock101 commented 3 years ago
audioVisualizer = binding.audioVisualizer
        var audioSession = playerViewModel.audioSessionId
        if (audioSession != -1)
            audioVisualizer?.setAudioSessionId(audioSession)
        audioVisualizer?.setColor(getAudioVisualizerColor())

The visualizer is showing up but is not matching with the song, it's just a circle I am using blobVisualizer

sagarrock101 commented 3 years ago

please help I need to connect the media player playing in my serivce class to this audio visualizer , Is there a way to do this

northout-silky commented 3 years ago

Hi @sagarrock101 Have you find any solution to this because I am also facing the same issue.

sagarrock101 commented 3 years ago

@northout-silky No I didn't find any solution, I guess this library works only if you have the mediaPlayer in UI and not in the background like Serivce

northout-silky commented 3 years ago

Ok, Thanks. @sagarrock101