lundi 1 novembre 2021

How can i set mediaPlayer.isLooping(true); in if-else condition

I wanna stop the mediaPlayer from looping when a user clicks on loop button when it's already looping, I tried but failed :-

if(mediaPlayer.isLooping(true)){
    mediaPlayer.isLooping(false);
}

I tried this but it requires boolean in if and am giving it a method. Pls Help if you can!

Aucun commentaire:

Enregistrer un commentaire