2

Is it possible to get the icy-meta from streaming data using android.media.MediaExtractor?

I want to get the artist and title.

Brad
  • 159,648
  • 54
  • 349
  • 530
Isobe59
  • 43
  • 6

1 Answers1

2

Android's MediaExtractor does not demux SHOUTcast-style ICY metadata. You will have to request it and demux it yourself before decoding the audio data.

Additionally, the metadata does not specify fields. There is only StreamTitle and StreamURL. The StreamTitle field is usually in the format of Artist - Title, but not always. It is up to the station to determine the format of that field.

The StreamURL is generally left blank, and doesn't typically exist in the case of Icecast streams.

Community
  • 1
  • 1
Brad
  • 159,648
  • 54
  • 349
  • 530
  • I does't use MediaExtractor. I used InputStream, but I can't MediaCodec to byte Array. How decode byte Array? I maked new **[question](http://stackoverflow.com/questions/28029342/android-decode-mp3-with-mediacodec-not-use-mediaextractor)**. – Isobe59 Jan 20 '15 at 03:29