I'm working on an EyeTracking Windows Forms application that opens a YouTube video on the screen, and starts tracking eye movements while the video is playing. I need to know the video's duration in order to en the EyeTracking Stream.
1) Should I find a method to get the video's duration (like, let's say we have a method for it, YoutubeVideo.GetDuration()), if so, how?
2) Or should I find a way to let my program know that the video has ended, and end my EyeTracking Stream when YouTube video has ended, if so, how?