Hi David.
Thanks for the answer.
I meant that, as "skip" lets me go, given a playlist, one item foward and play
it, i was looking for a similar command but for going one item back.
That is, in pseudocode, instead of "skip(+1)", "skip(-1)". Or even just
"play(#track)".
I think i'm having problems understanding liquidsoap's sources and what are
they meant to do. :(
I can understand that "queue" and "playlist" are two different things, for
example, and that's fine. But i don't understand why i can have a "skip"
command, i can use it on a playlist, the playlist can play forever in a loop
(wich means it remembers the track list), it can also play tracks in random
mode (wich means it can play in non-linear way), but i don't have a "previous"
command.
That's odd (as the playlist can obviously play previous items), and i really
feel it should be some basic functionality that i may be missing.
Ideally, i would like to have a source that behaves like a playlist
(that is, playing a given track list), but also has the equeue commands
available ("remove", "insert", etc), "next", "previous", "play", "pause", and
"stop". However, to get something like that in liquidsoap (as i understand it),
i have to mix different sources and combine commands; that is, "mixer.select"
for "pause", "mixer.skip" for "next", equeue commands for adding or removing
songs... and now "moving" (or even removing and re-adding) tracks to play them
in real-time user-requested order (when the user just have a list of tracks, a
"playlist", and double clicks any of them whenever they want to play them, like
in any other media player). It really confuses me =/
Given the answers, yours and Roger's, i guess doing tricks with equeue is the
way to go. I'm already doing something like that, so there's no problem after
all. But i still feel that's a little too dirty and/or i don't fully understand
liquidsoap's sources.
Anyway, i'll just check liGuidsoap and will try to clean my method for handling
equeue.
Thank you all.
________________________________
From: David Baelde <[email protected]>
To: Daniel Cantarin <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Tuesday, February 28, 2012 2:36 PM
Subject: Re: [Savonet-users] telnet custom GUI playback control
I'm not really sure what you mean by going backwards and skipping the
previous element (if it's been played already, what is there to skip?)
but concerning the removal and re-queuing of all items, there should
be a better way, using the "insert", "move" and "remove" commands that
equeue offers (and which are used in liGuidsoap if you need example
code).------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users