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");

and still using mp

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
05-21 17:51:20.556: ERROR/MediaPlayer(1313): error (1, -4)

Somebody can help me?



Other Threads

1. Moto Defy to Froyo

halo all defy users;

setelah beberapa kali RSD ke Defy, udah ada yang naik kelas ke froyo belom?

Bagi yang pake system version ini
"Moto_Version.2.59.0.MB525.Retail.en.SEA18" apakah udah naik ke froyo juga?


@Jouledoc <>

"Design is not just what it looks like and feels like. Design is how it
works" - Steve Jobs


2. error : sdcard unexpectedly removed ( apakah ini Android bug ? )

Gubraaaakkk !!!
(.... dibaca dulu lengkap napa bro...)


3. Launching desire s dan harga dasyat buat setiap peembelian htc di taman anggrek.

4. [WTA & WTB] Accessories buat Nexus S di Bandung

5. Garmin

6. How to kill service for debugging purpose

7. How can I handle Exception message internationalization