I've been trying to get this working for hours now with no success. No matter what I do my phone (HTC Hero 2.1 firmware) always says the video cannot be played. When I look at the logs I see:
09-26 21:34:56.201: INFO/VideoPlayerView(21477): onInfo what=MEDIA_INFO_UNKNOWN:,= extra=26
09-26 21:34:56.201: ERROR/PlayerDriver(56): Command PLAYER_INIT completed with an error or info UNKNOWN PVMFStatus
09-26 21:34:56.201: ERROR/MediaPlayer(21477): error (200, -32)
09-26 21:34:56.201: ERROR/MediaPlayer(21477): Error (200,-32)
09-26 21:34:56.210: DEBUG/VideoView(21477): Error: 200,-32
09-26 21:34:56.210: DEBUG/VideoPlayer(21477): Error: -32 mIsDialogShowed: false mPhoneCallState:0
It plays fine embedded in a web page using the QuickTime Player. Using Firefox Live headers I can see that the content type video/3gpp is being sent. I'm not sure what else to try.
The video file was recorded on my phone using the Camcorder app that came with it. Nothing was changed with the file. If I copy it to my SD Card it plays.
Here's how I'm trying to play it within the app:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(url), "video/*");
startActivity(intent);
Any ideas of what I might be doing wrong or forgetting?