I have a doubt with media audio.
My app haves an Activity which loads a SurfaceView class and I cannot get to modify media audio.
I saw the following statement :
this.setVolumeControlStream(AudioManager.STREAM_MUSIC);
but it isn’t works.
¿Someone could help me?
Thanks!
EDIT SOME CODE:
In my first Activity for example:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.setVolumeControlStream(AudioManager.STREAM_MUSIC);
//Other things
}
I’m trying to modify multimedia audio stream in runtime, but i don’t know how to do it
Okay, try this. I managed to do it on my SurfaceView.
In your Activity you have:
Then in your SurfaceView you can do the followin in the constructor: