iOS Question Playing a loop with VideoPlayer

Alessandro71

Well-Known Member
Licensed User
Longtime User
I'm playing a background sound using VideoPlayer.
To have it play in a loop I've implemented the Complete event as follows
B4X:
Sub VP_background_Complete
    VP_background.Position = 0
    VP_background.Play
End Sub
but actually there's a delay between the end and the restart of the sound.
Is there a different way?
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
Why aren't you using MediaPlayer? It has a Looping property.
already tried, but it's not working in background
 
Upvote 0
Top