Need some advice on a GUI
Alright, so recently I posted a script for creating YouTube playlists on your PC. I was attempting to create a way to manage when one song ends and start the next one in the list. I have decided this is impossible via controls and anything basic like that. I have decided on an alternative, but I wanted to get some opinions first.
My idea is this:
I can pull the duration of the song easily, I can then set a timer to tell how long it should be until the song ends. Now, this is the easy part. My question is, should I then remove YouTube's control bar (Volume, Seek bar, Play/Pause) and make it so the user cannot pause the video unless through a button and thus I can pause the timer. Or is it not worth it to auto-play the next song?
Thanks in advance, I'd really like some feed back on this!
Re: Need some advice on a GUI
Pulling the duration and using a timer feels completely wrong to me. It's a fudge that's going to lead to an ever growing cascade of problems for you to deal with. Preventing the user from pausing is just the first of them.
Is there no way to detect a song ending? I know absolutely nothing about the way you communicate with YouTube but I'd expect the API to provide you with a some sort of notification.
edit> Just read your other thread and it looke like that's what you originally intended to do. What went wrong? Was there no notification or could you no work out how to play the next song?
Re: Need some advice on a GUI
when a youtube video ends parts of the screen go black, you could use image processing.
Re: Need some advice on a GUI
@FunkyDexter
Yeah, the API's html/embedded code must be uploaded to a webserver before being able to communicate with anything. So unless I wanted to pay for a server I wouldn't be able to use it. Someday, if I feel like re-creating this when I decide to finally get a .com I will do it.
@Moti Barski
That's an idea, I could do a PixelSearch or something similar. I'll contemplate that.