Top "Android-mediaplayer" questions

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

Android MediaPlayer warning: Should have subtitle controller already set

My Nexus 4 got upgraded to 4.4 and now whenever MediaPlayer plays a sound, I get the warning: Should have subtitle controller …

android android-mediaplayer
java.lang.IllegalStateException in MediaPlayer.isplaying() method

public static MediaPlayer mp=null; public static void playGeneric(int name, final ImageButton button,final ImageButton pervious,Context context) { button.…

java android android-mediaplayer
MediaPlayer.setDataSource(String) not working with local files

I am able to play a local mp3 if I use the static method MediaPlayer.create(context, id) but it's …

java android android-mediaplayer
Android MediaPlayer/VideoView error (1, -2147483648)

I've been having an inconsistent experience with setting a VideoView's video from a file path. VideoView myVideoView = findViewById(R.id.…

android android-mediaplayer android-videoview
Streaming to the Android MediaPlayer

I'm trying to write a light-weight HTTP server in my app to feed dynamically generated MP3 data to the built-in …

android http stream media-player android-mediaplayer
ExoPlayer and start / pause / seekTo commands

I am trying to use ExoPlayer, as opposed to MediaPlayer and I can't seem to figure it out... MediaPlayer has .…

android mp3 android-mediaplayer mediacontroller exoplayer
Android MediaPlayer Error (-38, 0) "stop called in state 0"

I have looked at various different websites looking for a solution for this problem in my code. It is a …

android android-mediaplayer
MediaPlayer setDataSource failed with status=0x80000000 for Ringtone set by filepath on 2.3.4

Title says most of it. My application has been playing ringtones pointed by uri like content://media/internal/audio/media/387 …

android android-mediaplayer ringtone
Exoplayer playing m3u8 files Android

After trying multiple ways of playing m3u8 files using videoview and mediaplayer I decided to give up. Everytime i …

android android-mediaplayer m3u8 exoplayer