Android Mediaplayer Example – Play from Internet

In this post, we are going to discuss about how to play a music file(MP3) present over the internet. Android provides extensive support for playing music and it has dedicated a class called MediaPlayer which has all the necessary methods to play, pause, stop and do more with a MP3 file.

With the help of Android MediaPlayer framework we can play audio from media files stored in/as:

  1. Application’s resources (raw resources) [ Android Mediaplayer Example – Play from local resource ]
  2. Standalone files in the filesystem[ Android Mediaplayer Example – Play from URI ]
  3. Data stream arriving over a network connection
Read More

Android Mediaplayer Example – Play from URI

In this post, we are going to discuss about how to play a music file(MP3) in Android application. Android provides extensive support for playing music and it has dedicated a class called MediaPlayer which has all the necessary methods to play, pause, stop and do more with a MP3 file.

With the help of Android MediaPlayer framework we can play audio from media files stored in/as:

  1. Application’s resources (raw resources) [Android Mediaplayer Example – Play from local resource]
  2. Standalone files in the filesystem
  3. Data stream arriving over a network connection [Android Mediaplayer Example – Play from Internet]
Read More

Android Mediaplayer Example – Play from local resource

In this post, we are going to discuss about how to play a music file(MP3) in Android application. Android provides extensive support for playing music and it has dedicated a class called MediaPlayer which has all the necessary methods to play, pause, stop and do more with a MP3 file.

With the help of Android MediaPlayer framework we can play audio from media files stored in/as:

  1. Application’s resources (raw resources) [Similar to Button Listener – Make the cat start Meowing]
  2. Standalone files in the filesystem [Android Mediaplayer Example – Play from URI]
  3. Data stream arriving over a network connection [Android Mediaplayer Example – Play from Internet]
Read More

Pin It on Pinterest