VideoView and ProgressDialogShow/Hide

pixelpop

Active Member
Licensed User
Longtime User
I am streaming a video using the http option in VideoView. I am trying to use ProgressDialogShow while the video is initially being loaded until playing begins. Here is my code, but I can't determine how to remove (hide) ProgressDialogShow after the video begins.

B4X:
phn.SetScreenOrientation(0)
ProgressDialogShow("Please wait...")
vv.Initialize("vv")
Activity.AddView(vv, 0, 0, 100%x, 100%y)
vv.LoadVideo("http","{my_video_file_URL})
vv.Play

I think the answer may be to relate ProgressDialogHide to the IsPlaying event, but I'm not sure how to use that.
 

pixelpop

Active Member
Licensed User
Longtime User
So what would you recommend for displaying ProgressDialogShow while the stream is initiated and ProgressDialogHide when the video playing begins?
 
Upvote 0
Top