Hi,

I'm going to finish that function before releasing a first version of 
the software :)
Here is my problem: as you know I am using a custom 
dynamic_playlist.[start/stop] param|paramX|UUID to add and remove stream 
links from liquidsoap.
Each stream link / playlist is identified by a UUID both side.
An example from the telnet interface:
list
57bcca44-b217-47c0-ae83-f701b0c44f20 : output.icecast
320b0179-2db0-4a58-8d5e-d97c5448624e : output.icecast

When the user wants to update server properties, he highlight a link and 
hit "edit...". Then he makes his changes and click ok.
At this point the software sends "dynamic_playlist.stop 
param|paramX|UUID" then "dynamic_playlist.start newparam|newparamX|UUID"
then the XML file and the GUI is updated if the telnet command has 
returned successfully -- means wait for the string "Done!". "Done!" 
string print instruction comes for the liquidsoap script:

     # We stop all sources
     list.iter(source.shutdown, matching_sources)
     # And return
     "Done!"

Then problem is if I use the same UUID  (because more logical ?), the 
check "wait for "Done!" doesn't seems a reliable check: if I insert a 
new playlist with the same UUID just right after, liquidsoap create a 
some "UUID.1".
three way to go:
  - wait for X seconds before inserting again (but it's really not 
reliable).
  - create the updated link as another UUID
  - determine what "Done!" means or should return and when. (seems 
asynchronous to me ?).

Any advice ?

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to