Yes, sorry my bad, you should use:
on_error=(fun (_) -> 10.)

2017-01-31 15:07 GMT-06:00 Venevox <[email protected]>:
> Sorry, not working. :(
> What am I doing wrong?
>
> output.shoutcast(%mp3(bitrate=64,samplerate=44100,internal_quality=7),name="Name",genre="Genre",url="https://site.pl",host="ip",port=8000,password="hackme",on_error={10.},radio)
>
> Error:
> At line 18, char 223-227:
>   this value has type
>     ()->_
>   but it should be a subtype of (the type of the value at
> /usr/local/lib/liquidsoap/scm/shoutcast.liq, line 33, char 12)
>     (_,...)->_ (inferred at /usr/local/lib/liquidsoap/scm/shoutcast.liq,
> line 33, char 13-22)
>
> ---
> Pozdrawiam
>
> W dniu 31.01.2017 o 21:45, Venevox pisze:
>
> Thank you very much! :)
>
> ---
> Pozdrawiam
>
> W dniu 31.01.2017 o 21:38, Romain Beauxis pisze:
>
> Here: http://liquidsoap.fm/doc-1.2.1/reference.html#output_icecast
>
> The parameter you're looking at is:
>
> * on_error ((string)->float – defaults to fun (_) -> 3.): Callback
> executed when an error happens. The callback receives a string
> representation of the error that occured and returns a float. If
> returned value is positive, connection will be tried again after this
> amount of time (in seconds).
>
> You can use for instance:
> on_error={10.}
>
> Romain
>
> 2017-01-30 3:52 GMT-06:00 Venevox <[email protected]>:
>
> How to change the reconnect time to, e.g. 10 seconds?
>
> [output(dot)shoutcast:3] Will try again in 3.00 sec.
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to