I used ExoPlayer to make a playlist for a number of video files as follows:
how can i make it start with the file 4.mp4? i.e. when i do player1.play it will play the file 4.mp4.
Thanks
B4X:
Dim sources As List
sources.Initialize
for i=1 to 10
sources.Add(player1.CreateFileSource(File.DirAssets, i & ".mp4"))
next
player1.Prepare(player1.CreateListSource(sources))
how can i make it start with the file 4.mp4? i.e. when i do player1.play it will play the file 4.mp4.
Thanks