Hi again.... I think I should have give more details... So here is a snippet of my current working liq script, which does not implement metadata handling (I just added a telnet metadata handler but I doesn't use it atm)
http://snipt.org/Zy2 As a reminder: I would like to pass an url to a given dynamic source, that liquidsoap would read metadata from it. Each stream link would have it's metaurl that liquidsoap would read from it every X sec. Thanks in advance for the help ! Le 02/11/2011 11:17, Martin Hamant a écrit : > Hello happy liquidsoap users !! > > First I want to thank the whole liquidsoap's development team for the > newest 1.0.0 release, it's reactivity, kind attitude and deep patience. > > recently I have been very busy with other kind of stuff @ work and I > am back to some coding because our customer is going to need a special > feature that is present in windows based streamer (like edcast): > metadata update from file or url. (song titles, etc). > The last time I tried to implement this in my liquidsoap script I have > been totally lost :) > > I am using dynamic sources: > > dyn_sources = ref [] > > for now this list is populated like follow from a function (which is > called as a telnet command): > create_playlist(uri) = > ... > ... > dyn_sources := > list.append( [(uri,s0),(uri,output)] ) > !dyn_sources ) > end > > So, for each "uri", I store the input and output. > "uri" contains all the stream parameters as a string like > source_device|stream_id|stream_host|stream_port|stream_password|stream_format|...|... > note: "uri" is somehow the identifier for the stream, and i've think > of doing something like at dyn source creation: > > I plan to add to my script a new function (which will also be called > from telnet) that would handle a new value: "metasource_url" which > will be empty at source creation. And then I'd call this function for > the given uri that update the metasource_url value. > > > dyn_sources := > list.append( [(uri,s0),(uri,output), (uri,metasource_url] ) > !dyn_sources ) > end > > Am I in the right path ? How to I update/retrieve metasource_url > afterwards ? > > And then I would have a function update_meta() in create_playlist(), > polled by add_timeout.... that would read the metasource_url value and > retrieve data, insert it, etc. > > Thanks !! ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
