Results 1 to 4 of 4
  1. #1
    Wannes is offline Member
    Join Date
    Jan 2015
    Posts
    2
    Rep Power
    0

    Angry MediaMetadataRetriever setDataSource failed: status = 0xFFFFFFED

    I've been looking around and breaking my head for way to long, so here it is:
    I'm trying to get the metadata of a song that I play through a url.

    This is the error/warning I get:
    Java Code:
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFED
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.media.MediaMetadataRetriever._setDataSource(Native Method)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:103)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at com.artcoresociety.ocean.MainActivity.onCreate(MainActivity.java:60)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.app.Activity.performCreate(Activity.java:5275)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2164)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.app.ActivityThread.access$800(ActivityThread.java:139)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:102)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.os.Looper.loop(Looper.java:136)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5105)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:515)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
    01-12 15:54:05.971    8019-8019/com.artcoresociety.ocean W/System.err﹕ at dalvik.system.NativeStart.main(Native Method)
    And I use the following code:
    Java Code:
    static final String AUDIO_PATH = "http://artcoresociety.com/clients/wannes/ForWhomTheBellTolls-Metallica.mp3";
    try {
    
                retriever = new MediaMetadataRetriever();
                if (Build.VERSION.SDK_INT >= 14){
                    retriever.setDataSource(AUDIO_PATH, new HashMap<String, String>());
                } else {
                    retriever.setDataSource(AUDIO_PATH);
                }
    
                String artist = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ARTIST);
                String title = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_TITLE);
    
                TextView art = (TextView) findViewById(R.id.band);
                TextView tit = (TextView) findViewById(R.id.title);
                art.setText(artist);
                tit.setText(title);
    
                art.setVisibility(TextView.VISIBLE);
                tit.setVisibility(TextView.VISIBLE);
            }
            catch (Exception ex) {
                ex.printStackTrace();
            }
    For some reason java really doesn't know what to do with the url.
    Frustrating part is that it worked this morning but after a few minor tweaks it all went downhill fast.

    Any help would be appreciated.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: MediaMetadataRetriever setDataSource failed: status = 0xFFFFFFED

    What do you mean "Java"? I clearly see "android" in that stacktrace. Different platform, different runtime (Dalvik), different SDK with different classes. Also: different subforum ;)

    Regardless: when I copy/paste that url in a browser I get a flash player, not an MP3 being streamed to client. So I can very much understand that the -android- retriever also cannot make heads or tails from it. Possibly things still worked when you were trying to load an MP3 from your local environment rather than an online url?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Wannes is offline Member
    Join Date
    Jan 2015
    Posts
    2
    Rep Power
    0

    Default Re: MediaMetadataRetriever setDataSource failed: status = 0xFFFFFFED

    I'm using Java in Android Studio to make an Android App, very very sorry if this is the wrong place to post this question.
    When it worked it was from that url also, not local ( oh how I wish I saved that code when it worked ).
    But let's say that's the problem, how do I upload the mp3 so it doesn't play with flash ? I just uploaded the mp3 to our server, nothing more.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    26

    Default Re: MediaMetadataRetriever setDataSource failed: status = 0xFFFFFFED

    Moved from new to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. JVM creation failed
    By RogerP in forum NetBeans
    Replies: 12
    Last Post: 10-08-2011, 09:33 PM
  2. I Failed
    By maknib in forum New To Java
    Replies: 22
    Last Post: 11-23-2010, 02:37 AM
  3. failed to connect to DB
    By danghieu in forum New To Java
    Replies: 16
    Last Post: 05-25-2010, 11:27 AM
  4. Failed in reading xml
    By gayathri_g in forum New To Java
    Replies: 0
    Last Post: 08-27-2009, 02:07 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •