Android Problems With Mediametadataretriever: Return Null Value
Trying to retrieve mp3 informations (Albumname,...) with MediaMetadataRetriever. In the emulator it worked fine. On my device most methods returns null. MediaMetadataRetriever mmr
Solution 1:
Have you tried FFmpegMediaMetadataRetriever?:
FFmpegMediaMetadataRetrieverretriever=newFFmpegMediaMetadataRetriever();
retriever.setDataSource(songPath);
StringalbumName= retriever.extractMetadata(FFmpegMediaMetadataRetriever.METADATA_KEY_ALBUM);
Stringmp3Title= retriever.extractMetadata(FFmpegMediaMetadataRetriever.METADATA_KEY_TITLE);
retriever.release();
Post a Comment for "Android Problems With Mediametadataretriever: Return Null Value"