is it possible to play video as
progressive download, or by streaming,
simply by using setVideoPath or
setVideoURI, as in VideoViewDemo in
the API samples?
It should. It certainly works with MediaPlayer
, and VideoView
is just a ~200 line wrapper around MediaPlayer
and a SurfaceView
.
The VideoViewDemo code suggests using
setVideoURI for streaming, but I’m not
clear what kind of URL I should be
using.
http://
and rtsp://
can work, if the video was encoded properly.
Does someone have an example URL for a
video that can be streamed to the
Android emulator using the
VideoViewDemo code?
This video works with MediaPlayer
, except on the Nexus One.
EDIT: Actually, that link works with the Nexus One as well.