|
-
Nov 22nd, 2011, 10:34 PM
#1
Thread Starter
Junior Member
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!
-
Nov 24th, 2011, 11:46 AM
#2
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?
Last edited by FunkyDexter; Nov 24th, 2011 at 11:51 AM.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Nov 25th, 2011, 04:08 AM
#3
Banned
Re: Need some advice on a GUI
when a youtube video ends parts of the screen go black, you could use image processing.
-
Nov 25th, 2011, 08:05 AM
#4
Thread Starter
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|