Android Question exoplayer

hamid77

Member
hello friends
when I run this code I get this error in log
1.png

And these are my codes
B4X:
Sub Process_Globals
    Private player1 As SimpleExoPlayer
End Sub

Sub Globals
    
    
    Private SimpleExoPlayerView1 As SimpleExoPlayerView
End Sub
'                                                  پخش به صورت آنلاین
Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then
        player1.Initialize("player")
        Dim sources As List
        sources.Initialize
        sources.Add(player1.CreateUriSource("http://s16.picofile.com/d/8412627942/a2346101-63eb-40e4-a37f-f3a9b0a11033/4.mp4"))
        player1.Prepare(player1.CreateListSource(sources))
        
    End If
    Activity.LoadLayout("f1")
    SimpleExoPlayerView1.Player = player1
    player1.Play
End Sub

Sub Player_Ready
    Log("Ready")
End Sub

Sub Player_Error (Message As String)
    Log("Error: " & Message)
End Sub

Sub Player_Complete
    Log("complete")
End Sub

Sub Activity_Resume

End Sub
 
Top