Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
player1.Initialize("player")
Dim sources As List
sources.Initialize
sources.Add(player1.CreateUriSource("http://192.168.178.16/video/film.mp4"))
player1.Prepare(player1.CreateListSource(sources))
Can i still use the loop function ?
Because this code i found on the forum uses a listsource instead of a Urisource ?
B4X:
Dim ListSource As Object = player1.CreateListSource(sources)
player1.Prepare(player1.CreateLoopSource(ListSource, -1))
So i am a little confused on how to use the loop function on a urisource ?
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
player1.Initialize("player")
Dim sources As List
sources.Initialize
sources.Add(player1.CreateUriSource("http://192.168.178.16/video/film.mp4"))
player1.Prepare(player1.CreateLoopSource(sources, -1))
End If
Activity.LoadLayout("1")
SimpleExoPlayerView1.Player = player1
player1.Play
End Sub
Sources is the source of course and the -1 is for the infinite loop
sources.Add(player1.CreateUriSource("http://192.168.178.16/video/film.mp4"))
Dim ListSource As Object = player1.CreateListSource(sources)
player1.Prepare(player1.CreateLoopSource(sources, -1))
sources.Add(player1.CreateUriSource("http://192.168.178.16/video/film.mp4"))
Dim ListSource As Object = player1.CreateListSource(sources)
player1.Prepare(player1.CreateLoopSource(sources, -1))
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
player1.Initialize("player")
Dim sources As List
sources.Initialize
sources.Add(player1.CreateUriSource("http://192.168.178.16/video/film.mp4"))
player1.Prepare(player1.CreateLoopSource(sources, -1))
End If
Activity.LoadLayout("1")
SimpleExoPlayerView1.Player = player1
player1.Play
End Sub
Sources is the source of course and the -1 is for the infinite loop
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://archive.org/download/YoutubeVideo0145ShortClipLawnMower/Youtube%20video%200145%20short%20clip%20Lawn%20Mower.mp4"))
sources.Add(player1.CreateUriSource("http://archive.org/download/ichmp4andflv6Test/9.mp4"))
sources.Add(player1.CreateUriSource("http://archive.org/download/drascii/drascii.mp4"))
sources.Add(player1.CreateUriSource("http://archive.org/download/Dig_Dug_1982_Atari_US.mp4/Dig_Dug_1982_Atari_US.mp4"))
Dim ListSource As Object = player1.CreateListSource(sources) '<<<<<<<<<<<<<<<<<<<<<<<
player1.Prepare(player1.CreateLoopSource(ListSource, -1))
End If
Activity.LoadLayout("1")
SimpleExoPlayerView1.Player = player1
player1.Play
End Sub
This is the real problem. You must be able to read the logs.
On some devices you need to enable the logs on the developer options. If you don't see the logs with B4A-Bridge then try to switch to USB debug mode.
This is the real problem. You must be able to read the logs.
On some devices you need to enable the logs on the developer options. If you don't see the logs with B4A-Bridge then try to switch to USB debug mode.