I have a VideoView and I set the youtube video URI and install android.permission.INTERNET , but I got this message when I want to play the video .. "you cannot play the video"
this code snippet 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 the xml layout file:
.... <VideoView android:id="@+id/skillVideo" android:layout_width="wrap_content" android:layout_height="200dp"></VideoView> ....
android
Adham Jul 02 2018-11-11T00: 00Z
source share