Hi Jorge,

# Live source from live.ogg:
live = input.http("http://host:port/live.ogg";)
# source2: plays live as soon as available, playlist if not. Don't wait
#for the end of any song to switch
source2 = fallback(tracksensitive=false,[live, playlist])

and i receive a Line 28, char 47 before ";": Parse error
when run the script... why does it happen and  mean?

Liquidsoap complains about a syntax error on line 28 of your script,
near a semicolon. That's a pretty explicit error, and it seems to be
unrelated to the snippet you gave us... If you still don't get it,
show us your full script.

> Yes, the parameters for the array are not mount point names, but
> list of sources, as written above.

sorry, but i dont understand the point, what is the difference between a source 
and a mount point? if possible i really appreciate a working example (better if 
works for me! :)  )

Liquidsoap is not icecast. A source in liquidsoap is a general notion
of audio stream: it can be an input from the microphone, an http
stream, etc. For example input.http() is a function which takes a
string (describing the URL) and returns a source (the resulting audio
stream if it is available and successfully decoded). Not all strings
represent a stream: for example, you can use strings for specifying
playlist modes, as we shall see below..

> You can use the "mode" parameter:
> mode (string | defaults to "randomize"): normal|random|randomize

I misunderstand again, where should be this line ?
and how exactly must be in my script?
normal|random|randomize look like options where i should just use one...
but what is the difference between random and randomize?

Random means that songs are picked randomly, in particular it is not
impossible to get twice the same song. Randomize is like shuffle on
some media players: the list is shuffled, fully played, the
re-shuffled, etc.

For your playlist, the use is as follows: playlist(mode="normal","mylist.txt")

But I think you could learn a lot on our wiki:
http://savonet.sf.net/wiki/Liquidsoap. And I strongly encourage you to
read a few pages there before asking your next questions -- at least
you could tell us if some page is unclear.

In particular you should read the Quickstart guide, or the more
complete description of the syntax, and the Reference:
http://savonet.sourceforge.net/wiki/LiqQuickstart
http://savonet.sourceforge.net/wiki/LiqScript
http://savonet.sourceforge.net/wiki/LiqReference

In the first two pages you will learn the basics, and in particular
how to pass parameters to functions. In the latter you will learn how
to find what functions are available, and what parameters can be used.
You can also have a look at LiqConcepts to understand liq in depth.

Cheers.
--
David

Reply via email to