MediaPlayer can't load file from asset?

by arnouf » Fri, 22 May 2009 01:56:53 GMT


Sponsored Links
 Hi all,

I put in my assets project folder a 3GP file that I'm trying to load.
I tried to method
MediaPlayer mp = new MediaPlayer();
AssetFileDescriptor is = getAssets().openFd("video.3gp");
mp.setDataSource(is.getFileDescriptor());

and still using mp
mp.setDataSource("file:///android_assets/video.3gp");

My application is crashing with the following issue (I didn't find a
lot of help with group and Google search):
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)

Somebody can help me?

Regards


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. is Android app qualified for LBS Challenge?

does anyone know whether android apps designed for ADC or for HTC Hero
are qualified for the challenge below without modification? thanks.

NAVTEQ Global LBS Challenge
http://www.nn4d.com/site/global/market/lbs_challenge/p_lbs_home.jsp

--

2. A touch-screen netbook to port Android and/or Chrome OS to it?

Hey, guys! Don't you think this netbook 
http://www.alwaysinnovating.com/touchbook/gallery.htm
is a perfect candidate for porting Android or Chrome OS to it? With
its touch-screen it fits much better than Aspire One...

--

3. Fwd: Oi, preciso de um favor

4. How to get the AID for application in android.

5. Scrolling large image - working good but slow

6. How to switch off Anti-aliasing

7. Saving Intents to use later (WAY LATER!)