Skip to content

Instantly share code, notes, and snippets.

@DavidYKay
Created May 25, 2013 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidYKay/5650570 to your computer and use it in GitHub Desktop.
Save DavidYKay/5650570 to your computer and use it in GitHub Desktop.
Simple VideoView code. Works in an Activity but not a Fragment.
VideoView video = (VideoView) findViewById(R.id.video);
//save video that is in assets folder into root of sd card to play
video.setVideoPath("http://www.androidbegin.com/tutorial/AndroidCommercial.3gp");
video.start();
@kieuhua
Copy link

kieuhua commented Mar 29, 2015

Thanks. I am glad to know; however, "http://www.androidbegin.com/tutorial/AndroidCommercial.3gp" is not available. I depend on this to test some tv leanback code. I couldn't find any other 3gp file or mp4 work. Do you have any other 3gp file that works for you. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment