Le Saturday 02 February 2008 19:43:59 Frits Letteboer - Radio Twenterand, vous 
avez écrit :
> > I've added several new function using requests, like request.resolve and
> > request.file, and I renamed request to request.create for more clever
> > namespace...
>
> Ah. Since my knowledge of the language used by LiquidSoap sucks at this
> time, I missed it.
>
> How many songs does this function request? Reason for asking is that the
> script I made to feed songs to the player assumes the song that is
> returned by my script is the one currently playing, but that's not the
> case.

Sorry I didn't understand this...

> So I will need to figure out how to publish the song that Liquidsoap is
> currently playing to the website. (This is normally done by my request
> script).

The usual way to do this is to connect to telnet and use the on_air function.
You may also use the on_metadata and use the data in a script of yours.

> > I'll be adding a backward compatible function very soon. In the mean
> > time, you can replace request(foo) with request.create(audio=true,foo).
> > audio=true includes tests to check wether the file can be decoded when
> > the request is resolved.
>
> Great. Seems like audio=true is required anyhow, since leaving it out or
> setting it to false causes "Thread 3 killed on uncaught exception
> Assert_failure("tools/utils.ml", 23, 46)"

Strange..
I'll try to see if it's out fault or ocaml's support in freebsd..

> > Also, you can use request.create without audio (false by default). This
> > can be usefull for downloading playlists.. On this topic, I have also
> > added playlist.parse to try to parse a playlist inside the script.
> >
> > We try to keep svn API page up to date, it is located there:
> >   http://savonet.sourceforge.net/wiki/LiqReferenceSVN
>
> Yes, actually I looked there but failed to recognize the change to
> request.create. Small examples on using these functions would also help
> alot. ;)

Yes, we shall update the documentation before next release.

> Thanks sofar, I got most of these things working now. Getting Savonet to
> run on FreeBSD is a royal PITA, btw. But that's another story.

Heh..
Is that you who spoke on IRC of a Mutex error in freebsd ?

Feel free to submit tickets for your issues, we'll try to fix them of forward 
to ocaml if we suspect it comes from there..


Romain


Reply via email to