2010/2/18 Аркадий Левин <poison...@gmail.com>: > i make web interface to liq, im create this base.liq
That's a good way to go: create your own script and its dedicated web interface. You're doing things correctly. Let me just detail a couple options. > My script make playlist and copy to queue.push, hove i get played > tracks and next track and current play? > > i test, for next track get data from "queue.secondary_queue" is > correct? for played track get from "trance.metadata" and skip "--- 1 > ---", is correct? For the current play you can use "on_air", which gives you a request ID from which you get metadata using "metadata <rid>". In some cases (crossfade, add, etc) you might get several request ids on air. You can also get all the played metadata, as you proposed, using "trance.metadata" (and skipping to the item number 1 is the correct thing to do if you just want the current one). Note that you can use a store_metadata() operator at any point of your script to reproduce the same behavior, which can be useful if you're rewriting metadata. For the next tracks, there is no builtin support: it's too hard to know in general, a script can be very dynamic, rely on its environment, etc. Individual sources can give you some information, though, and you have to combine it according to what you know and assume about your script. In your case, you can get the next items from the queue using "foo.queue" (assuming you give ID "foo" to your request.queue()), and then use "metadata <rid>" to get the actual info from the identifier. Hope this helps, -- David ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users