Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing mediaplayer volumes #33

Closed
dariobanfi opened this issue Jun 22, 2014 · 3 comments
Closed

Changing mediaplayer volumes #33

dariobanfi opened this issue Jun 22, 2014 · 3 comments

Comments

@dariobanfi
Copy link

Hello,

I noticed that IjkPlayer does not implement .setVolume() like the native android mediaPlayer.
Is there another way to do that that I'm missing or should I add it to the C implementation and call the method from java?

Thanks.

@bbcallen
Copy link
Contributor

AudioManager.setStreamVolume is enough for most situation.
If you really need them, you can find the AudioTrack wrapper in android_audiotrack.c

@dariobanfi
Copy link
Author

My problem is that AudioManager.setStreamVolume is for the whole Context.. I would like to mute only one video player (since I have more than one running in the same activity)

@bbcallen
Copy link
Contributor

Added 36a10e5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants