Error: com.google.android.exoplayer2.upstream.HttpDataSource$HttpDataSourceException: Unable to connect to http://kccug.com/KabojjaApp/lessons/good.mp4
but when i past it into my browser it plays without any problems.
i have a number of mp4 files that i want the user to ready direct from the server. but i would want it a way that the user selects a particular subject say english and then it show files available then he choices the file to be played. because in erel's example it is fixed a bit i wanted to just select a file then it is play please help how can i do this using b4x
B4X:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
player1.Initialize("player")
Dim sources As List
sources.Initialize
'sources.Add(player1.CreateUriSource("https://html5demos.com/assets/dizzy.mp4"))
sources.Add(player1.CreateUriSource("http://kccug.com/KabojjaApp/lessons/good.mp4"))
player1.Prepare(player1.CreateListSource(sources))
End If
Activity.LoadLayout("1")
SimpleExoPlayerView1.Player = player1
player1.Play
End Sub