How to play audio from buffer in Android -


i trying play audio buffer streamed android android. tried using audiotrack works pcm format only.to play mp3, looking use mediaplayer doesn't support playing buffer.how can make work?

well, have few options... 1) (probably bad option) can make ask work using local proxy feed mediaplayer mp3 data. not straightforward, sure can work. 2) decode mp3 data , use audiotrack. more lightweight option if willing use 3rd party library decoding. see this link. there other libraries can used decoding.

update: unfortunately, link provided broken. apologies not capturing more information in answer. op says in comment, decode using mediacodec , play using audiotrack.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -