Le 9 janvier 2012 04:54, Senaka Amarakeerthi <[email protected]> a écrit :
> Dear All,

Hi!

> I allow site visitors to request songs via a PHP script as follows.
>
> radio = ........
> def next() =
>   file = list.hd(get_process_lines("php-cgi -q
> /var/www/requests/requests.php"))
>   request.create(file)
> end
> r = request.dynamic(next)
> radio = fallback(track_sensitive = true, [r,radio])
>
> I would like to play a recorded clip something like ' Another request from
> a listener ' before playing a dynamic request.

For simple uses, you may want to look at prepend:
  http://liquidsoap.fm/doc-1.0.0/reference.html#prepend

Otherwise, you may want to look at a more flexible solution using transitions:
  http://liquidsoap.fm/doc-1.0.0/cookbook.html (scroll down to the
"transitions" section)

> Also pass the dynamic queue to PHP script so that PHP script display
> when dynamic requests are queued. Or else, get dynamic request one by one
> (one after playing  the previous dynamic request) allowing PHP side to queue
> the requests.
>
> Any hint is appreciated.

I am not sure that I understand fully this one. You should be able to
know when a song is queued by monitoring the calls to your
"request.php" script. I am getting anything wrong here?

Have a good day,
Romain

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to