> Hi,
>
> You can always skip the currently playing request, with any
> request-based source: just skip. The only non-trivial thing here is
> that the skip request should be issued from another operator,
> typically <output>.skip will send a skip signal down the streaming
> graph until it reaches the source which plays the on_air file. You can
> also setup your own command for skipping that particular queue using
> source.skip in the script language, and register that functionality in
> the server using server.register.
>
> Good luck,
>
> David
thanks, i managed to get the skip function work for the request based
source.
now i dream to stop any queued file, but i guess liquidsoap is too fast.
here is what i did:
req=request.queue(id="req",...)
def stop_queue(s) =
ret = server.execute("req.queue")
ret = list.hd(ret)
ret = string.split(separator=" ",ret)
list.iter(fun(x) -> source.skip(s),ret)
end
server.register(namespace="req",
description="Stop all queued files.",
usage="stop",
"stop",
fun (s) -> begin stop_queue(req) "Done." end)
it results in only one skipped queued file...
any ideas? maybe a polling function checking each msec the count of
source.queue and then skip?
omg.
by writing this lines, i believe i have a solution: -> use equeue ->
first remove files from secondary_queue -> skip.
i gonna check this out...
anyway.
thx for reading^^
mccurly
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users