Skip to content

Instantly share code, notes, and snippets.

@bilbo7833
Created July 22, 2016 10:46
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 bilbo7833/fe2c5dd160a177a04ad02a4b05ddf8c8 to your computer and use it in GitHub Desktop.
Save bilbo7833/fe2c5dd160a177a04ad02a4b05ddf8c8 to your computer and use it in GitHub Desktop.
Android & Video Blog series - MediaPlayer Configuration Example
MediaPlayer mPlayer = new MediaPlayer();
mPlayer.setDisplay(mSurfaceHolder);
mPlayer.setDataSource(MyActivity.this, videoUri);
mPlayer.setVolume(left, right);
mPlayer.setLooping(true);
mPlayer.prepare();
mPlayer.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment