It is used to specify the audio streaming type. It returns true / false to indicate whether song playing or not. It is used to get the total time duration of the song in milliseconds. It is used to get the current position of the song in milliseconds. to play an audio from our application.Īpart from above methods, MediaPlayer class provides a different type of methods to control audio and video files based on requirements. If you observe above code snippets, we create an instance of MediaPlayer class and added required audio source, streaming type, audio file path, etc. prepare() // might take long! (for buffering, etc)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |