Created
July 22, 2016 10:46
-
-
Save bilbo7833/fe2c5dd160a177a04ad02a4b05ddf8c8 to your computer and use it in GitHub Desktop.
Android & Video Blog series - MediaPlayer Configuration Example
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
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