Search code examples
androidvideomedia-player

Android MediaPlayer error (1,-1)?


I'm trying to play my video in Samsung Galaxy S but its not working.. my video is uploaded on a server and when I play it on my emulator it works fine but of course slow, but when I play it on my device it gives me Sorry, this video cannot be played with the following error:

01-06 14:37:41.730: ERROR/PlayerDriver(1284): Command PLAYER_INIT completed with an error or info PVMFFailure

01-06 14:37:41.730: ERROR/MediaPlayer(4585): error (1, -1)

01-06 14:37:41.730: ERROR/MediaPlayer(4585): Error (1,-1)

my link looks like this: http://user---.---.--.--/-------/try.mp4

this link works fine whether in emulator or device: http://www.pocketjourney.com/downloads/pj/video/famous.3gp

I'm sure its not a codec error because I tried playing in from sdcard/try.mp4 and it worked fine


Solution

  • Android doesn't support .mp4 files for streaming.You can play .mp4 from SDCard.