Skip to content
Advertisement

MediaMetaDataRetriever.setDataSource return null

I’m trying to develop an application (Radio Stream) app, I want to get the details of the song that is playing on the radio for that MediaMetadataRetriever API but when i set my URL i get this error :

java.lang.IllegalArgumentException at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:71) at maa.myapp.MainActivity$PlayerTask.onPostExecute(MainActivity.java:447) at maa.myapp.MainActivity$PlayerTask.onPostExecute(MainActivity.java:419)

this my code :

JavaScript

Advertisement

Answer

finally it work with ‘com.vodyasov:amr:0.5’ library

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement