0

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.

Pang
  • 9,564
  • 146
  • 81
  • 122
Vis
  • 109
  • 7
  • You want one app to access the audio data being played by a different app? – fadden Jul 23 '15 at 14:44
  • @fadden : Yes thats exactly what I wanted. To elaborate, I want to access the data in the media buffer of Android irrespective of the application which is playing the audio . Is it possible to achieve it at the application layer itself or do i have to go deeper into the kernel level using drivers ? – Vis Jul 24 '15 at 06:16
  • I suspect the easiest approach would be to replace the mediaserver component with your own. Apps are generally prevented from spying on or interfering with each other by the Linux permission systems. mediaserver is the gateway between apps and the media hardware drivers, so it's probably the best place. – fadden Jul 24 '15 at 15:18

0 Answers0