Skip to content Skip to sidebar Skip to footer

Mediaplayer Unable To Prepare?

I wrote a streaming radio app that is fairly basic in functionality but some devices refuse to 'prepare' such as my Optimus One running 2.2. My app runs on other 2.2 devices any my

Solution 1:

You made need to drop a release() in there first. It could be crashing due to multiple mediaplayer instances.

Solution 2:

The interesting line from the log is this one:

Command PLAYER_INIT completed with an erroror info PVMFFailure, -1

That's your error code, -1, which unfortunately is utterly generic ... it has no particular meaning. Fortunately the name, PVMFFailure is suitably Googlable... it looks from the linked thread that the media format is a likely suspect. Older platforms probably can't handle the same bitrates and formats as newer ones.

https://groups.google.com/forum/?fromgroups#!topic/android-developers/6uGbh37bVEQ

Solution 3:

I just flashed CyanogenMod 7 on my phone and my app now works great. Apparently LG is retarded and likes to break things. Still not sure why other apps work and mine didn't but I'll just have to add a note to my app description explaining the issue to other LG users.

Post a Comment for "Mediaplayer Unable To Prepare?"