Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1 View

android端音频如何调节音量

目前的安卓移动端有个现象,视频音量无法调节,,调节系统的音量不起作用,请问有什么解决办法吗

Tags (2)
0 Kudos
3 Replies
Highlighted
Beginner
1 View

@SystemService

@SystemService
protected AudioManager audioManager;
...

audioManager.setSpeakerphoneOn(true);
audioManager.setMode(AudioManager.STREAM_VOICE_CALL);

 

这个好使

0 Kudos
Highlighted
Employee
1 View

audioManager.setStreamVolume

audioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, /*volume*/, /*flags*/);

 

0 Kudos
Highlighted
Beginner
1 View

thank you very much

thank you very much

0 Kudos