I can play a video from the Internet by inserting the URL like below:
mPath = Uri.parse(\"http://commonsware.com/misc/test2.3gp\"); mVid.setVideoURI(mPath)
this works for me
String videoName = nameWithoutFileExtention; int id = getResources().getIdentifier(videoName, "raw", getActivity().getPackageName()); final String path = "android.resource://" + getActivity().getPackageName() + "/" + id; vvBgVideo.setVideoURI(Uri.parse(path));