Re: [android-developers] Issue with playing audio or video from Remote URL (RTSP/HTTP)

2009-11-04 Thread Mark Murphy
dileep wrote:
> In case of http it says PVMFErrorContentInvalid for progressive
> download

At least for HTTP streaming of MP4 content, you need to have your 'moov'
atom before your 'mdat' atom. This may happen automatically when you
create your MP4 files, or you may need to lightly twiddle them (e.g.,
MP4Box -hint on Linux).

> Can you please post the code if someone has been successful in playing
> audio/video through http/rtsp.

vidtry handles HTTP streaming:

http://github.com/commonsguy/vidtry

I wrote that in part as a proof of concept for an app I wrote for a
consulting customer. They have a large library of MP4 files which they
needed to touch up for the issue listed above, and playback basically
did not work in the emulator, but it works fine on devices. The vidtry
sample does more than just play back video, and it uses MediaPlayer
rather than VideoView, but hopefully it will help.

You may be interested in viewing the following presentation from the
2009 Google I/O conference:

http://code.google.com/events/io/2009/sessions/MasteringAndroidMediaFramework.html
http://www.scribd.com/doc/16917356/Mastering-the-Android-Media-Framework

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Issue with playing audio or video from Remote URL (RTSP/HTTP)

2009-11-04 Thread dileep
Hi Friends,

Did anyone try playing audio/video through http/rtsp. I am having a
problem with either of the approach
I am getting an error Command PLAYER_INIT completed with PVMFError
I some cases I got
Command PLAYER_INIT completed with
PVMFErrorContentInvalidForProgressiveDownoload.

Can some one explain what is the problem.
The code snippet I am using is given below...

---
--
VideoView mVideoView = (VideoView) findViewById(-);
 mVideoView.setVideoPath("http://192.168.1.143:8080/3.3gp";);
   mVideoView.setMediaController(new MediaController(this));
   mVideoView.requestFocus();
   mVideoView.start();


The code works fine when I say
mVideoView.setVideoPath("/sdcard/vv.3gp");
but not able to play if I give a rtsp/http urls

In case of http it says PVMFErrorContentInvalid for progressive
download

Can some body tell me what is the problem.
Can you please post the code if someone has been successful in playing
audio/video through http/rtsp.

Thanks & Regards
DileepKumar
mail: dileepkumar.renint...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en