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