Android Question Why does not restart the player after Stop?

desof

Well-Known Member
Licensed User
Longtime User
Hello friends I have this code in the button Stop to stop playback

B4X:
Sub StopButton_Click
    If MP.IsPlaying Then
        MP.Stop
        ESTADO="STOP"
    End If
    UpdateStatus
    Log("StopButton_Click")   
End Sub

and this one I should take it up but does not work never resets.
Why?

B4X:
Sub PlayButton_Click
    If ESTADO="STOP" Then
        If MP.IsPlaying Then
            MP.Stop
        End If
           
            MP.Load("rtsp://xxx.xx.114.181:xxxx/nuevo/nuevo")
            MP.Play
    Else
        ExecuteRemoteQuery("SELECT * FROM radio WHERE xxxxxxxx LIKE'%" & "xxxrin" & "%'",Listado)
        MP.Play
    End If
       
    ESTADO="PLAY"
    UpdateStatus
   
End Sub
 

desof

Well-Known Member
Licensed User
Longtime User
YES! runs ok!

But then when I click PlayButton_Click
not ever play again
 
Last edited:
Upvote 0
Top