Not logged in. · Lost password · Register
Forum: General discussion RSS
Playifnotplaying Description
Avatar
Henry (Administrator) #1
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
As I can read in the forum nobody can imagine what the playifnotplaying command does, so here is an introduction:

1) What happens if you click play if a song is already playing?
Yes, the current track is restarted!

2) What happens if you add a song so an empty playlist?
The song is added to the playlist. Nothing else.

3) What if people are drunk and don't know what to do if the added a song 42 times and the cannot hear something?
... (censored)

4) So the solution is a playifnotplaying command.
It only starts playing if playback is not in progress to prevent 1). Thats all.


Read that carefully, we'll write an exam about that tomorrow...  ;)
This post was edited on 2003-04-10, 06:45 by Unknown user.
Keefy #2
Member since Mar 2003 · 89 posts
Group memberships: Members
Show profile · Link to this post
Hi Henry, I'm not sure that I fully understand what happens here. Can I give an excuse of "the dog ate my lecture notes"?  ;)

What I thought the command would do is:
[list]
[*]If Winamp is not playing, the track you just added plays immediatly.
[*]If Winamp is playing, the track is added as normal (both insert and add options)
[/list]
In playing around with it, the first of these doesn't seem to work for me. Winamp does start playing, but not the that track you just added, it seems to play the currently selected track instead, which is usually the last track you listened to.
Avatar
Henry (Administrator) #3
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Can I give an excuse of "the dog ate my lecture notes"?
NO!   :nuke:

The plan is to serialize the commands!

You can use the following url command to do what you want:
browser.html?add=somefile.mp3&playifnotplaying

The same can be done with the insert command.
browser.html?insert=somefile.mp3&playifnotplaying


If you don't want to use the playifnotplaying option just remove it from the template.
So it's not done internally.

Prepare for the exam!
Keefy #4
Member since Mar 2003 · 89 posts
Group memberships: Members
Show profile · Link to this post
Yeah, I've got that part working already in my own skin, I'm defaulting to use the playifnotplaying option all of the time. By the way, the XML one is coming along quite nicely, doesn't even seem as if it's running in a browser!  :-D  I'll get another (more recent) demo together if you are interested...

However, it seems to be that the track that starts playing isn't the one that was just added. The idea behind the option would be that it if Winamp is stopped, the most common thing that you would want to happen when queuing another track would be to play that track. What I'm seeing is that it repeats the last track it played and then the recent one.

Or, if you had stopped the playlist mid stream, it will continue from where it left off. I was hoping for something that would just play the track you added. This way, there is only one thing you need to know to use the system. Click on a track and it'll play. If it's already playing something, it gets queued. Very easy for the drunkards!!
Avatar
Henry (Administrator) #5
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Maybe you're right... I'm on it!
Avatar
Henry (Administrator) #6
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Ok, now I created a new command called playaddedifnotplaying! It does exactly what Keefy wrote. Use this directly with an add command.

Iwonderificancreatemoresillycommandslikethisone  :lol:
Keefy #7
Member since Mar 2003 · 89 posts
Group memberships: Members
Show profile · Link to this post
LOL, thanks for that!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 168.6 ms (90.2 ms) · 68 database queries in 75.7 ms
Current time: 2018-12-18, 13:01:48 (UTC +00:00)