I have a VideoView
and I set URI of youtube video and set android.permission.INTERNET
but I got this message when I want to play the video .. "you can't play the video"
this code piece for video player
mVideoView = (VideoView) findViewById(R.id.skillVideo);
mVideoView.setVideoURI(Uri.parse("http://www.youtube.com/watch?v=1_pryg5HFYY"));
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();
and this is the VideoView
in xml layout file :
....
<VideoView android:id="@+id/skillVideo"
android:layout_width="wrap_content"
android:layout_height="200dp"></VideoView>
....