Thanks for your help...I did a lot of changes but it was something
like that
vv = (VideoView) findViewById(R.id.videoSpace);
mp = new MediaPlayer();

try {
    AssetFileDescriptor afd = getAssets().openFd("techno-chicken.
3gp");
    mp.setDataSource(afd.getFileDescriptor());
    mp.prepare();

    mp.setDisplay(vv.getHolder());
    mp.start();
} catch (IllegalArgumentException e) {
.......
} catch (IOException e) {e.printStackTrace();}

The standard error that I had
05-21 17:51:20.545: ERROR/PlayerDriver(542): Command
PLAYER_SET_DATA_SOURCE completed with an error or info
PVMFErrNotSupported
05-21 17:51:20.556: ERROR/MediaPlayer(1313): error (1, -4)

Thanks a lot for you help

On May 21, 9:47 pm, Jason Proctor <[email protected]> wrote:
> post your code?
>
> >Hi,
>
> >I'm trying to load a video file from assets folder, but MediaPlayer or
> >VideoView still crashes.
> >Somebody has an idea?
>
> >Regards
>
> --
> jason.software.particle
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to