Le 23/11/2011 09:45, Martin Hamant a écrit :


Le 22/11/2011 21:27, Mix Dance a écrit :
Hi Team,
Hi Antoine,


I would like to do this on my LIQ script:
- Rename metadata of current track
You could simply use server.insert_metadata , as described in the documentation.
An example:


    # s0 is your source and s the new source.

    s = server.insert_metadata(id="mixdance-meta", s0

then thru telnet, you have access to the command (like described here http://savonet.sourceforge.net/doc-1.0.0/metadata.html)

ID.insert key1="val1",key2="val2",...

so here

mixdance-meta.insert title="Queen - Bohemian Rhapsody"

- Play an URL stream
Never used myself but seems quite simple:
http://savonet.sourceforge.net/doc-1.0.0/http_input.html

To implement a custom telnet command, look at server.register (there are many examples on the website).
- Add jingle on an other song
I'm not sure of what you mean but I am pretty sure it's possible :D

Hi Martin!

A big thanks for your quick and quality respond!

I'm not sur to have understand use. actually, i have:

out = output.icecast(%mp3(bitrate=128, samplerate=44100),

    host = "localhost", port = 8000,

    password = "hackme",

    mount = "path",

    fallible=true)


def my_request_function() =

  # Get the first line of my external process

  result =

    list.hd(

    get_process_lines("comand"))

  # Create and return a request using this result

  request.create(result)

end


# Create the source

output = out(strip_blank(request.dynamic(my_request_function)))


If i want implement the 2 function, i need:

out = output.icecast(%mp3(bitrate=128, samplerate=44100),

    host = "localhost", port = 8000,

    password = "hackme",

    mount = "path",

    fallible=true)


def my_request_function() =

  # Get the first line of my external process

  result =

    list.hd(

    get_process_lines("comand"))

  # Create and return a request using this result

  request.create(result)

end


# Create the source

output = out(strip_blank(request.dynamic(my_request_function)))


server.register(namespace="play_stream",
                description="Start an play stream.",

                usage="play_stream <url>",

                "output = input.http(URL)",

                output = input.http(URL))


And if i want reset metadata if they are empty, what is the good function to call to an UNIX script the new metadata?

Thanks :)

Antoine
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to