Hi, You can have a callback (with metadata as argument) on each new track with 'on_track'. For instance, the following will print all the metadata on each new track.
def ot(m) = print(m) end s = on_track(ot, s) The metadata are basically those which can be found in the headers of the music files (such as ID3 for mp3). We add some (that you can see with the above function) for internal purposes, but none of them should be really useful to you, which is why they are not documented :) Cheers, Sam. On Wed, Apr 10, 2013 at 10:37 PM, Ken Restivo <[email protected]> wrote: > Is there a callback I could register in a randomized playlis to trigger > whenever the next track is selected? Or, better yet, when it's playing? > > And, is there documentation of the data structure that gets passed in, all > its fields, etc? > > I was looking for that in the case of, say metadata, and didn't find that > datastructure documented anywhere either. Likewise, I was looking to find > what methods/fields are in a "stream" too. The functions are well documented > in the API, but I couldn't find similarly comprehensive docs of liquidsoap's > data structures. > > Thanks. > > -ken > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
