I need help with a simple app I am writing, I need to play a youtube video (have got that working) but only for a set period of time. What is the best way to accomplish this...
Main Module (leaving the basics out)
Activity.LoadLayout("MainScreen")
YouTube.StartVideo("AI?X?X?X?X?X??X?X?X?X??X?X?X", _
Main.VidID, Main.tStart*1000, True, True)
The above code plays the video (VidID) and starts at tStart. All is working there. However, the YouTube functionality doesn't appear to have a stop, so I need it to stop at tEnd (say 10 seconds).
What is the best way to accomplish this? I suspect I need a timer to tEnd that will kill the YouTube. Please provide code (not just overview) as I am not too familiar with B4A.
Thanks
Jonathan