I have done some tests with the exoplayer library and the code below:
Sub Process_Globals
Private xui As XUI
Private player1 As SimpleExoPlayer
End Sub
Sub Globals
Public sources As List
Private SimpleExoPlayerView1 As SimpleExoPlayerView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
player1.Initialize("player1")
End Sub
Sub Activity_Resume
sources.Initialize
sources.Add(player1.CreateFileSource(File.DirAssets,"บทสวดยอดพระกัณฑ์ไตรปิฎก.mp4"))
player1.Prepare(player1.CreateListSource(sources))
SimpleExoPlayerView1.Player = player1
player1.Play
End Sub
I have added the SimpleExoPlayerView1 in the designer.
In debug mode this code works.
BUT, in release mode the filename seems to be causing some problems in the linker.
In debug mode.
This needs to be fixed by Erel.
Note: in B4A version 12.50 this happens also.