Created
May 25, 2013 20:00
-
-
Save DavidYKay/5650570 to your computer and use it in GitHub Desktop.
Simple VideoView code. Works in an Activity but not a Fragment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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