Hi, I am developing an application for an online radio, the problem is that approximately after half an hour the player stops no matter if it is playing in the background or with the application open, the code I use (summarized) is as follows, I appreciate giving me some light to solve this problem, from already thank you very much.
B4X:
Sub Class_Globals
Private mp As MediaPlayerStream
Private btn1 As B4XView
End Sub
Public Sub Initialize
' B4XPages.GetManager.LogEvents = True
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
mp.Initialize("mp")
mp.Looping = True
End Sub
Private Sub btn1_Click
mp.Load("https://stream.example.com/stream1")
End Sub
Sub mp_StreamReady
mp.Play
End Sub