The project needs to get the real-time volume value of the video playback, the simplest way is to listen to the audio output, get the audio output stream, and then convert.
When investigating, first find this blog:
http://blog.csdn.net/jinzhuojun/article/details/33748031
The output stream data is recorded in real time using the newly added MediaRecorder.AudioSource.REMOTE_SUBMIX parameter in API 19.
Because you need system-level permissions to use the Remote_submix parameter, try changing the application signature to system signing.
Reference: System signing for Android app under Windows
The change signature was successful, but there was an error during installation and both Samsung and Nexus failed to install.
Continue to find the reason, found that changing the system signature is only applicable to the system itself compiled, for the domestic various deep custom systems, the application can not be installed.
Get the system audio out of the scheme this declares bankruptcy!
In addition, Google found someone suggested to try Android.media.audiofx.Virtualizer
Record Android Audio Output
Android Get device overall audio output in PCM
The preliminary view seems to have the possibility of use, the next stage to investigate well.
Android Capture Android System Audio