*how to issue solve : sorry this video cannot be played android*
youtube video download
Code here:
private String path = "";
private VideoView mVideoView;
@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.videoview);
mVideoView = (VideoView) findViewById(R.id.surface_view);
path = "rtsp://
v4.cache2.c.youtube.com/http://www.youtube.com/watch?v=w0w7iHns9iA";
//path = "http://commonsware.com/misc/test2.3gp";
if(path == "")
{
// Tell the user to provide a media file URL/path.
Toast.makeText( VideoViewDemo.this, "Please edit VideoViewDemo
Activity, and set path"
+ " variable to your media file URL/path",
Toast.LENGTH_LONG).show();
}
else
{
/*
* Alternatively,for streaming media you can use
* mVideoView.setVideoURI(Uri.parse(URLstring));
*
* mVideoView.setVideoPath(path);
*/
MediaController mc = new MediaController(this);
mc.setAnchorView(mVideoView);
mVideoView.setVideoURI(Uri.parse(path));
mVideoView.setMediaController(mc);
mVideoView.requestFocus();
mVideoView.start();
}
--
**
**
* *
**
*
*
*
Thanks & Regards,
Pradeep . M
Android Software Engineer
*
**
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en