I have the next code
Into the log window the message is that video is not playing.
If I pause the execution on the last line the video is already playing without problems. It seems that when the execution arrives to the log line or to the do line the video has not yet begun. I need to pause the execution while the video is playing.
How can I solve that?
Thanks!
B4X:
video.Initialize("video")
Activity.AddView(video, 0, 0, 100%x, 100%y)
video.LoadVideo(File.DirDefaultExternal, "/video/intro.mp4")
video.MediaControllerEnabled = False
video.Play
Log(video.IsPlaying)
Do While (video.IsPlaying = True)
Loop
Into the log window the message is that video is not playing.
If I pause the execution on the last line the video is already playing without problems. It seems that when the execution arrives to the log line or to the do line the video has not yet begun. I need to pause the execution while the video is playing.
How can I solve that?
Thanks!