Hi Team,
 
Here is myscript:


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


           host = "localhost", port = 8000,


           password = "hackme",


           mount = "stream",


           fallible=true)




   def my_request_function() =


     # Get the first line of my external process


     result =


       list.hd(


       get_process_lines("php-cgi -q /path/to/request.php"))


     # Create and return a request using this result


     request.create(result)


   end




   # Create the source


   http_src = input.http(id="live", buffer=1., max=2.,
"http://default.url/stream.mp3";)


   automatic = strip_blank(request.dynamic(my_request_function))


   source=fallback(track_sensitive=true,[http_src, automatic])


   output=out(source)


 
Theinput.httpis dynamic: I start the stream with the Socket Connection:

   live.url http://new.url/new.stream.mp3


   live.start


And it is play after the current song.
But i have a problem: The metadata of the previous song stay.
Example: The automatic source play "Good Song" of "Various Artist". The stream
is initialized. "Good Song" finish and the stream start but the metadata stay
"Good Song", and "Various Artist".
 
Isit possible to haveasolutionwhen initializingthe stream,example:



     live.url http://new.url/new.stream.mp3


     live.start


     var.set live.metadata['title']="New Good Song"


     var.set live.metadata['artist']="God"






Orcreate a functioncalledwiththesocket:



     live.star_stream "http://new.url/new.stream.mp3"; "


       New Good Song"

        "God"







And the bestwill beto define the max timeof the diffusion(in seconds)(here 1h,
and 3m)



     live.star_stream "http://new.url/new.stream.mp3"; "


       New Good Song"

        "God" "3780"







I hope you understand me because i'm bad in english ;)
 
Cheers
 
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