Android Question how to stop the Youtube library activity after x seconds?

sasetcolombia

Member
Licensed User
Longtime User
Hi.
I need to finish the Youtube library activity after a certain time, according to the duration of the video.After this load a new screen.

I also need to disable the user so I can stop the video (only until it is finished)
Thanks!
 

DonManfred

Expert
Licensed User
Longtime User
Are you running the video inside your app?
Or how do you start the youtube activity?

There is no way to prevent the user from stopping the video/playing another video/searching for videos
 
Upvote 0

sasetcolombia

Member
Licensed User
Longtime User
I'm using Youtube Library

I have a splash screen and after 3 seconds I call the following function:
B4X:
Sub PlayVideoYoutube
   YouTube.StartVideo("AIzaSyxxxxxxxx-xxxx-xxxxxxxxxxxx", _
      "5ACyEU1-uAU", 0, False, True)
End Sub

The video is 30 seconds.After 30 seconds the Yotube Library activity must be automatically closed and load a new Screen.
Thanks!
 
Upvote 0
Top