Le Thursday 20 November 2008 12:40:16 Gil Brandão, vous avez écrit :
> So back to "fallback"... I'll try to state the problem in a clear
> way: I would like to queue a source. (e)Queues handle requests. But
> what is a request? From concepts.html:
>
> "An abstract notion of files: requests
>
> The request is an abstract notion of file which can be conveniently
> used for defining powerful sources. A request can denote a local file,
> a remote file, or even a dynamically generated file. They are resolved
> to a local file thanks to a set of protocols. Then, audio requests are
> transparently decoded thanks to a set of audio and metadata formats.
>
> The systematic use of requests to access files allows you to use
> remote URIs instead of local paths everywhere. It is perfectly OK to
> create a playlist for a remote list containing remote URIs:
> playlist("http://my/friends/playlist.pls"). "
>
> how can I "push" a "generic request" into a queue? So far I could
> only successfully push valid audio files uris (that is what is
> documented in reference.html). The request.queue function even has an
> initial list of requests parameter, how can I manipulate that queue to
> asynchronously push a "generic request" ?
Using telnet/socket or server.exec. The syntax is:
source.add request
A "generic" request is a request than may point to a distant FTP file, or any
other kind of protocol, lime samba, http, etc.. (you can even register your
own). Such a request needs some resolution steps before being available for
streaming.
> Another issue, the help command in the telnet interface, states some
> interactive variables. I could not find a way to used them... what is
> their propose? how to defined them?
Interactive variables are used to change the behaviour or a variable in an
operator at runtime. I'm not sure, but I think you register them as:
var = interactive.float("var",0.)
This returns a function ()->float, i.e. var() returns the current float value.
Then you can pass this function instead of a float in your operator's
declaration, and change the value through telnet/socket or server.exec.
Romain
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users