audiostream-metadata-retriever

Additional

Language
Java
Version
v0.5 (May 7, 2015)
Created
May 6, 2015
Updated
Dec 16, 2016 (Retired)
Owner
Maksym Vodyasov (vsmaks)
Contributor
Maksym Vodyasov (vsmaks)
1
Activity
Badge
Generate
Download
Source code
APK file

Blurb

audiostream-metadata-retriever

This is an android-library which allow you to retrieve metadata such as title and headers of audiostream as soon as possible.

Support protocols

  • Icecast
  • Shoutcast wil be added later

How to use

//set uri of your favourite audiostream
Uri uri = Uri.parse("http://...");

//implement callbacks
OnNewMetadataListener listener = new OnNewMetadataListener()
{
    @Override
    public void onNewHeaders(String stringUri, List<String> name, List<String> desc,
      List<String> br, List<String> genre, List<String> info) {}
      
    @Override
    public void onNewStreamTitle(String stringUri, String streamTitle) {}
}

//Start parsing
AudiostreamMetadataManager.getInstance()
    .setUri(uri)
    .setOnNewMetadataListener(listener)
    .setUserAgent(UserAgent.WINDOWS_MEDIA_PLAYER)
    .start();
    
//Stop parsing
AudiostreamMetadataManager.getInstance().stop();

See sample.

Support android APIs

  • library: API 8+
  • sample: API 14+