tags:

views:

634

answers:

2

hii Anyone plz help me to stream videos from an url and then i want to save the video to sdcard.

thanks revathys

+1  A: 

For video streaming take a look at the following example/projects:
Audio and Video on Android- Official Documentation
Vidtry an Open Source Project by Mark Murphy
Video Streaming Example by Davanum(this might be out of date)

Saving to SDcard: I am not very sure, but once you have the video stream(abstracted as InputStream) in your code you should be able to save it on SD card using normal File I/O operations.

Samuh
hi i streamed d video on my emulator. but nw prob is a textview of url is appearing before the video which is displaying.plz find me a solution to delete teh textview from my final view
hi i streamed the video on my emulator. but now prob is a textview of url is appearing before the video which is displaying.plz find me a solution to delete teh textview from my final view – revathys
Will textView.setVisibility(View.GONE) help?
Samuh
+2  A: 

Be careful when you prepare your videos for streaming. The documentation on the MediaPlayer class says it is accepting video streaming over HTTP only if the following 2 conditions are true:

  1. The 'moov' atom has to be before the 'mdat' atom.
  2. The clip has to be reasonably interleaved.

While the first condition is quite straightforward, about the 2nd one I couldn't find a definitive answer on what does it mean for a clip to be "reasonably interleaved".

Stelian Iancu