I want to play two sounds. I am using this code, but there is an interval of about 2s between the two sounds, when the first sound is over I want to play the other straight. How can I do that?
mediaplayer MP = mediaplayer (getApplicationContext (), ROOX83); Mp.start (); Mp.setOnCompletionListener (New On Compilation Listener) {Convert to Public Zero (Media Player MP3) {mp2 = Media Player (GetApplicationContext (), R.ORASS); mp3 2.start ();}}); Android 4.1 (v16) was added to play according to the gappeline. Before that, there is always a small delay between and ending and another media player starts due to buffering; second to MediaPlayer before ending Can help (and setNextMediaPlayer as it would be necessary to use).
No comments:
Post a Comment