views:

160

answers:

2

There are some posts about this, but so far, i haven't seen any good answer. Is there a way i can stream audio from mms:// uris with Android?. MediaPlayer seems not to like these streams. Also changing mms:// with http or rtsp doesn't work either. Did someone find a workaround to this?. Thanks!

+1  A: 

hi i can help you on this

Here is solution

  1. Download Android NDK
  2. Then download modified libmms and libffmpeg at http://radiotime.com/apps/android.aspx
  3. basically you has to have 2 threads:
    • 1st thread for downloading the audio data from mms station then write to a wma file
    • 2nd thread decode this wma to PCM data using the libffmpeg.

good luck

regards :)

hiennt
hmm, i'm not familiar with NDK, but,.. i guess i will have to dig on it :-). Thanks for the reply!
ggomeze
A: 

Hi Hiennt, thank u for your proposition about streaming mms into android...

But creating these 2 threads is not very clear, specially the implementation of these multiple library (mms, wma, pcm...).

So would you please help me with a useful tutorial on how to :

--> Generate the libraries,

--> Get the wma file from mms station,

--> Decode this wma to pcm...

Thx in advance ...

SuperH