MediaMetadataRetriever on streaming source
I am having a tough time displaying the current track playing from a streaming source. Using MediaMetaDataRetriever class returns a NULL, meaning it failed. I wrote a simple method but now I'm inclining to think this only works on media files like MP3, WMA, AVI, etc. public void metaData(){ mmr.setDataSource(urlStation); String metaD = mmr.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST); Toast.makeText(MainActivity.this, "Artist = " + metaD, Toast.LENGTH_LONG).show(); Any good and easy recommandations would be greatly appreciated. Thank you for your time!