Le 31 juillet 2011 17:19, Brandon Thomas <[email protected]> a écrit : > Hi,
Hi! > I'm looking for 2 things: > 1: The main page of savonet mentions a php project that works with > Liquidsoap - I'm interested in checking this out to see what kind of > functionality it offers. Can someone send me a link or tarball? It is available there: http://savonet.hg.sourceforge.net/hgweb/savonet/savonet/file/27902adb62ce/interfaces/php However, it is quite dated so you may need to update the code.. Please send us back the diff if you do so :-) > 2: I'm trying to figure out a way to have liquidsoap call a php script to > get the server location of the next file to play and meta data as well, can > anyone tell me if this is possible using the current input possibilities - I > did look at all of the Source/Input functions listed and none seem to do > this - maybe I missed something, this seems like it would be a popular > function - can anybody point me in the right direction? For executing an external process, you have get_process_lines, usually used this way: bla = list.hg(get_process_lines("/path/to/foo")) You can create a source based on the location returned by a script using request.dynamic. Finally, you the metadata, the best is probably that you combine them with the location using the annotate protocol: annotate:title="foo",artist="bar":/path/to/file.mp3 or annotate:title="foo",artist="bar":http://foo.com/bla.mp3 etc.. All this is documented online. You can for instance check the radiopi script for a detailed example of the use of annotate. Romain ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
