why setDataSource failure ?


Last Updated:

  1. drac2000

    drac2000 New Member This Topic's Starter

    Joined:
    Jul 26, 2009
    Messages:
    1
    Likes Received:
    0
    Hi community

    I am trying to play a .3gp file after my android built from source.

    I get in some errors when trying to set the file path in the ApiDemo for testing the media player with 3gp that i pushed on the sdcard as /sdcard/dancing.3gp
    Here is the error stack if somebody can help please :eek:

    I/ActivityManager( 800): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x10200000 comp={com.example.android.apis/com.example.android.apis.ApiDemos} }
    D/MediaPlayerDemo( 3974): surfaceCreated called
    I/System.out( 3974): Path =/sdcard/dancing.3gp
    I/System.out( 3974): File Descriptor is valid :true
    E/VorbisPlayer( 787): ov_open() failed: [-132]
    E/MediaPlayer( 3974): Unable to to create media player
    W/System.err( 3974): java.io.IOException: setDataSourceFD failed.: status=0x80000000
    W/System.err( 3974): at android.media.MediaPlayer.setDataSource(Native Method)
    W/System.err( 3974): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:247)
    W/System.err( 3974): at com.example.android.apis.media.MediaPlayerDemo_Video.playVideo(MediaPlayerDemo_Video.java:111)
    W/System.err( 3974): at com.example.android.apis.media.MediaPlayerDemo_Video.surfaceCreated(MediaPlayerDemo_Video.java:168)
    W/System.err( 3974): at android.view.SurfaceView.updateWindow(SurfaceView.java:347)
    W/System.err( 3974): at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:173)
    W/System.err( 3974): at android.view.View.dispatchWindowVisibilityChanged(View.java:3241)
    W/System.err( 3974): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:691)
    W/System.err( 3974): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:691)
    W/System.err( 3974): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:691)
    W/System.err( 3974): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:691)
    W/System.err( 3974): at android.view.ViewRoot.performTraversals(ViewRoot.java:587)
    W/System.err( 3974): at android.view.ViewRoot.handleMessage(ViewRoot.java:1103)
    W/System.err( 3974): at android.os.Handler.dispatchMessage(Handler.java:88)
    W/System.err( 3974): at android.os.Looper.loop(Looper.java:123)
    W/System.err( 3974): at android.app.ActivityThread.main(ActivityThread.java:3742)
    W/System.err( 3974): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 3974): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err( 3974): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
    W/System.err( 3974): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
    W/System.err( 3974): at dalvik.system.NativeStart.main(Native Method)

    I really don't know why native setDataSource throws IOException, cause when I sysout the file path it really exists and its descriptor is valid (as you can see the log above) :confused:

    Thanks for your help/ideas ;)
    drac.
     

    Advertisement
  2. zoldorf

    zoldorf New Member

    Joined:
    Aug 31, 2009
    Messages:
    1
    Likes Received:
    0
    HI,

    Have you managed to solve this issue somehow? I'm fighting with the same now..

    Thanks,
    Zoltan
     

Share This Page

Loading...