Skip to content

Instantly share code, notes, and snippets.

@eggie5
Created June 30, 2011 22:29
Show Gist options
  • Save eggie5/1057447 to your computer and use it in GitHub Desktop.
Save eggie5/1057447 to your computer and use it in GitHub Desktop.
MediaPlayer mp = new MediaPlayer();
InputStream is= getResources().getAssets().open("video1.3gp");
FileDescriptor= fd=new FileDescriptor(is);
mp.setDataSource(fd);
mp.prepare();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment