java(mediaAudio, activity, "android.app.Activity.getSystemService", "String", "audio") //获取当前音量 java(current, mediaAudio, "android.media.AudioManager.getStreamVolume", "int", "3") //获取设备最大音量 java(ss.maxV, mediaAudio, "android.media.AudioManager.getStreamMaxVolume", "int", "3") java(null, mediaAudio, "android.media.AudioManager.setStreamVolume", "int", "3", "int", "100", "int", "0") 把这个放入载入事件或者单击里 如果想要循环调大可以加个w循环 t() { w(true) { stop(1000) java(mediaAudio, activity, "android.app.Activity.getSystemService", "String", "audio") //获取当前音量 java(current, mediaAudio, "android.media.AudioManager.getStreamVolume", "int", "3") //获取设备最大音量 java(ss.maxV, mediaAudio, "android.media.AudioManager.getStreamMaxVolume", "int", "3") java(null, mediaAudio, "android.media.AudioManager.setStreamVolume", "int", "3", "int", "100", "int", "0") } }