2012/7/13 udo noll <u...@aporee.org>:
> hello David, Romain et. al.,

Hi Udo and sorry for the delayed response..

> i'm using the telnet interface for getting metadata of the currently
> playing sound, but that doesn't seem to work for live harbour input.
> e.g. my stream is defined as follows:
>
> radio  = [live, dynamic, playlist, fallback]
>
> fallback is a file, playlist a playlist, dynamic is the request queue
> and live is input.harbor(...)
>
> that all works in terms of priority etc.
>
> request.on_air returns a list where the first id is the actually
> playing source, which is then resoved with request.metadata ID.
> that works nice with all but a live source.
>
> if the active source is live, it doesn't show up with request.on_air,
> means i cannot resolve the metadata associated with live.
>
> any idea on this?

Yes, live sources do not use requests -- requests are typically files.
Therefore you don't see their track using requests.on_air.

What you should do is setup a on_metadata handler that keeps track of
the latest metadata seen on your source and register a telnet command
that returns this value. Something like:

meta = ref []

def seen(m) =
  meta := m
end

s = on_metadata(seen, s)

(...)

def saw(_) =
  "#{!meta}"
end

server.register("on_air", saw)


Romain

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to