Reputation: 1765
I need to stream videos from an URL and then i want to save the video to SDcard.
Upvotes: 1
Views: 14276
Reputation: 2492
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:
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".
Upvotes: 3
Reputation: 36484
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.
Upvotes: 3