hi Sam, > Your code seems to be correct... The output.icecast(live, ...) is > *after* the on_metadata line, right?
yes, it's after on_meta... i did some in-depth debugging of my setup. seems that LS does all correctly, i.e. setting metadata when it arrives, send it to icecast etc. it also executes on_metadata when metadata arrives. this is good news, probably what you've expected and no surprise ... ;) my problem lies in the script which is executed on_metadata. since i have sort of spontaneous inserts (from a request queue) or changes from a skip command etc., and my script may need two seconds to execute, it's too slow to catch up with the quick metadata change, i.e. misses a metadata update. the purpose of my on_metadata script is to simply write metadata to a json file, which is displayed on a web interface. have to rethink that. btw, what method would you recommend for displaying metadata on a webpage? thanks, udo > > ++ > > On Mon, Apr 7, 2014 at 11:15 AM, udo noll <[email protected]> wrote: > > > > hello, > > > > still struggeling with metadata on live harbor inputs: > > > > i want to execute a custom script on_metadata: > > > > ... > > > > # define live input > > live = input.harbor(id="live", ... ) > > > > # this adds a telnet/server cmd "live.insert" > > live = server.insert_metadata(id="live", live) > > > > # execute script on_metadata > > live = on_metadata(fun (meta) -> system("/path/test.sh &"), live) > > > > ... > > > > > > test.sh is obviously called when the live source connects, but i'd also > > expect > > it to be called when i execute the server cmd > > > > live.insert my_meta="...", my_other_meta="..." > > > > the metadata is send to icecast, but the script isn't called. i thought > > inserting > > a chunk of metadata would "trigger" the on_metadata event. no? > > > > thanks for a tip, > > udo ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
