Hello, I am updating my apps , I have a audio streaming player working without any problem, so I wanted to start using the new features of B4A 10, I load the app and recompile, and there is no audio at all
anybody can help ?
anybody can help ?
basic code:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private xui As XUI
Private player1 As SimpleExoPlayer
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
Private playBtn As Button
Dim sources As List
Private SimpleExoPlayerView1 As SimpleExoPlayerView
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
player1.Initialize("player1")
sources.Initialize
sources.Add(player1.CreateUriSource("http://ny2.radiocast.us:8033/;"))
player1.Prepare(player1.CreateListSource(sources))
End If
Activity.LoadLayout("Layout")
SimpleExoPlayerView1.Player = player1
player1.Volume=1
player1.Play
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
End Sub
Sub playBtn_Click
player1.Play
xui.MsgboxAsync("Hello world!", "B4X")
End Sub