I want to play a video from my assets or raw folder in my app in Android
using VideoView
I am getting the error as video cannot be played
please anyone give me
A few things to note:
VideoView vv = (VideoView)this.findViewById(R.id.videoView)
String uri = "android.resource://" + getPackageName() + "/" + R.raw.my_video_file;
vv.setVideoURI(Uri.parse(uri));
vv.start();
There is more information on this here.