m_MediaPlayer = MediaPlayer.create(context, soundFromResource); m_MediaPlayer.setVolume(0.99f, 0.99f); m_MediaPlayer.setLooping(true); m_MediaPlayer.setOnCompletionListener(USoundPlayback.this); m_MediaPlayer.start();
I tested it as above, I also tested it by calling setLooping(true) after start() , but no luck.
I have two Nexus 5 phones, both with Android 5 on them. On one, the cycle works, on the other hand, the sound stops after one time, it will not loop.
Any ideas ?!
source share