Search code examples
androidstreamingmedia-playermms

how to stream through mms://


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!


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.