Hi Akos!

Le 22 mars 2012 13:30, Akos Veres <[email protected]> a écrit :
> I was wondering if it would be possible to rewrite the metadata when a live
> source kicks in. Let's say there's a playlist, but there's a switch for dj
> shows, when a DJ connects to the dj stream, the dj stream takes over and is
> streamed out to the listeners.
>
> What I'd like to achieve is when the dj stream kicks in, change the
> metadata, so it would only say something all the way, while the dj is
> connected, when the dj source is dropped, back to the general metadata.
>
> Any help regarding this, or guidelines to some doc, would be great. Problem
> is I don't even know where to start.

You can override all metadata on the live source using: map_metadata,
in particular using the insert_missing=true and update=false
parameters. This should probably be enough for you:

s = map_metadata(update=false, insert_missing=true, fun (_) ->
[("title", "Some show!")], s)

> I wanna do the same thing with jingles too, like when I play a jingle every
> 5 songs, the metadata shouldn't be changed, but that's low priority thing,
> I'm guessing if I understand the dj source switch, I'll know how to do the
> jingle one too.

Yeah, one you get familiar with metadata updates you should be fine
with the jingles case.

BTW, for a general presentation on how to use liquidsoap for a net
radio, you can read through this tutorial:
  http://liquidsoap.fm/on2_part2.html

Romain

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to