Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 618
u_kami Avatar asked Dec 29 '25 01:12

u_kami


1 Answers

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

like image 50
Ranjit Mishra Avatar answered Jan 01 '26 10:01

Ranjit Mishra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!