![]() MediaPlayer mediaPlayer = MediaPlayer.create(this, R.raw.song) This method returns an instance of MediaPlayer class. In order to use MediaPlayer, we have to call a static Method create() of this class. One of this way is through a class called MediaPlayer.Īndroid is providing MediaPlayer class to access built-in mediaplayer services like playing audio,video e.t.c. Android provides many ways to control playback of audio/video files and streams.
0 Comments
Leave a Reply. |