Hi,
2018-07-27 14:47 GMT-05:00 Bruno Lima <bruno....@hotmail.com>:
>
> Hi, I described my problem in more details here:
>
> https://github.com/savonet/liquidsoap/issues/584
>
>
> I have a jackd input on liquidsoap and mp3 and opus outputs. I need to
get the metadata from a MySQL table and update it on the output stream
every 10 seconds.
>
>
> The metadata is Title and Artist.
>
>
> I have already checked the page describing metadata mechanisms as
suggested but couldn't see how I can implement that as I am not very
experienced with this.
>
>
> If anyone could give me an example of how I could do it would be great!
Since jack inputs do not have metadata or track marks, you will need to
insert those yourself at the required time.
In this page: http://www.liquidsoap.info/doc-1.3.3/metadata.html you will
find a detailed example that should guide you through the process.
Basically, you need to do the following:
* Use insert_metadata to obtain a way to programmatically insert new
metadata. This is described in the example
* Use add_timeout to run a function every 10 seconds
* Write the function to insert metadata that will be executed each 10
seconds. This part you almost already have it.
Additionally you may want to use a variable reference to keep track of the
last inserted metadata and only update if it has changed.
Hope this helps!
Romain
------------------------------------------------------------------------------
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
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users