I am able to access the media buffer of the file/stream through mediaextrator, mediacodec and audio track when I set the dataSource.
All I want is a method of accessing the media buffer of the audio which is playing through any music app in Android.