iUI8 library new video player, is there an event we can check at the end of a video playing , the idea is it will load a new video and play after each. . so you have a play all video feature for our app.. 6 videos once a video ends it loads and plays the next..
I don't see a event that is raised when a video stops playing .. can we do this
ok , bit unusual answering this myself, but it might help others I have found an answer -
You can use a time and check the following
vv is a reference to the video, so we can every second check if the Duration is = to the position then it would of finished now to write the code that plays the next video
B4X:
Private Sub Timer1_Tick
' Do While vv.Duration <> vv.Position
If vv.Duration = vv.Position Then
Msgbox("Video has Ended","Video Status")
Timer1.Enabled =False
End If
End Sub