mediaPlayer.setDataSource(fd) cause IOException: Prepare failed.: status=0x1

by Marco Nelissen » Fri, 07 Aug 2009 01:53:49 GMT

Sponsored Links

You need to use the version of setDataSource() that takes a FileDescriptor,
offset, and length.

Because setDataSource() doesn't parse the file, so the player engine is only
finding out that it can't play your apk file after you call prepare().

And why on earth is the same resource happily played one way but not

There is no design flaw. The issue is that you were only using the
FileDescriptor that you obtained from the AssetFileDescriptor that
openRawResource() returns. That file descriptor is for the entire apk file,
whereas you only want to play a specific part of that apk file.

Should I look in the  MediaPlayer.create code to see how they get


Other Threads

1. Oot: paging androiders lampung.

Ada gak yah member id-android yang di lampung? Klo ada tolong absen di sini 

Mau bikin mirink, sekaligus minta bantuan untuk root spica punya temen :)


Warm regards,

~ Android is the best ~


2. Revert

Kok di android banyak pakai kata revert? Maksudnya apa...

snet form granimauss a10


3. reading Gallery 3D cache

4. Adobe Camp Indonesia

5. Adapter fetches and parses RSS feed to get data - best practice?

6. Decryption key that only works with your phone number?

7. How to deal with the SQLite resource that is too large?