Top "Android-mediaplayer" questions

MediaPlayer class can be used to control playback of audio/video files and streams in Android devices

Android - Reading ID3 tags from mp3 stream

I'm streaming an mp3 file using MediaPlayer mp.setDataSource(myContext, Uri.parse("http://my_song.mp3")); mp.prepareAsync(); mp.setOnPreparedListener(…

java android android-mediaplayer id3
Android - MediaStore.Video.query() is returning null

I'm trying to retrieve the metadata from a video file (title, language, artist) using the method MediaStore.Video.query(). However, …

android video media android-mediaplayer mediastore
TimerTask is already scheduled

I have a MediaPlayer object which plays a local audio file. I am using a TimerTask to update the position …

java android android-mediaplayer timertask
What does MEDIA_ERROR_SERVER_DIED mean?

In the Android docs, there is a constant defined MEDIA_ERROR_SERVER_DIED which is described as: Media server died. …

android error-handling android-mediaplayer
Android: AAC+ radio streaming doesn't work with MediaPlayer (Android 4.2.2 / Shoucast links)

I'm recently faced with some problems of streaming AAC+ radio streams with the Android MediaPlayer. Regarding to the documentation, there …

android streaming android-mediaplayer
How to add Subtitles(.SRT files) to video in Exoplayer android?

i am working on a project where i should play .srt files along with video in android. I was working …

java android android-mediaplayer exoplayer
Display album art from MediaStore.Audio.Albums.ALBUM_ART

I use a CursorLoader in a LoaderManager with a Custom CursorAdapter. I've already achieved to display the Album and the …

android android-imageview android-mediaplayer albumart android-cursorloader
Android:Media Player difference between PrepareAsync() and Prepare()

I wanted to implement basic media player functionality and was confused between PrepareAsync() and Prepare() method calls. Which one should …

android android-mediaplayer
How do I access the MediaMetadataRetriever.setDataSource(...) status codes?

I'm getting the following error java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFEA and I'd like to know what this status …

android android-mediaplayer android-music-player