0

In my android app I want to implement a visualizer graph linked to a Media Player following this idea. I use a service to manage my background streaming with MediaPlayer. The problem comes with the transmission of my MediaPlayer object to my fragment. I need to have it there because is where the link occurs:

    // We need to link the visualizer view to the media player so that
    // it displays something
    mVisualizerView = (VisualizerView) findViewById(R.id.visualizerView);
    mVisualizerView.link(mPlayer); 

In summary, I need to send MediaPlayer object from my service to my fragment. Any idea?

Gabriel Muñumel
  • 1,876
  • 6
  • 34
  • 57

0 Answers0