Salut David and Hi the list !
I should use insert_metadata to modify the metadata in telnet.
I've written :
live = fallback(track_sensitive=false,[source, default ])
live = insert_metadata(id="live",live)
# sortie vers icecast
output.icecast(%vorbis,
host="192.168.250.11",port=8000,password="motdepassedelaradio",mount="radio",live)
But liquidsoap don't load them. In stout, the errors are :
At line 76, char 15:
this value has type
(?id:string, ?fallible:bool, ?on_start:(()->unit),
?on_stop:(()->unit), ?start:bool, ?restart:bool, ?restart_delay:int,
?mount:string, ?name:string, ?protocol:string, ?host:string,
?port:int, ?user:string, ?password:string, ?genre:string,
?encoding:string, ?url:string, ?description:string,
?on_connect:(()->unit), ?on_disconnect:(()->unit), ?public:bool,
?headers:[(string*string)], ?icy_metadata:string, ?format:string,
?dumpfile:string, format(audio=2,video=0,midi=0),
source(audio=2,video=0,midi=0))->source(audio=2,video=0,midi=0)
but it should be a subtype of
(format(audio=2,video=0,midi=0), ?host:string, ?port:int,
?password:string, ?mount:string,
((([(string*string)])->unit)*source(audio=?#A+1,video=0,midi=0)))->?B
At line 76, char 106:
this value has type
((([(string*string)])->unit)*source(audio=?#A+1,video=0,midi=0))
(infered at line 66, char 23-38)
but it should be a subtype of
source(audio=2,video=0,midi=0)
Can you help me ?
How delete the [(string*string)] to send flux to icecast ?
Good night,
Vincent
On 01/18/2011 04:04 PM, David Baelde wrote:
Salut Vincent,
2011/1/17 Vincent Cassé<[email protected]>:
server.register("update_metadata_direct_artist",
fun (artist)->begin
direct = rewrite_metadata([("artist",'$(artist)')],direct)
"metadata updated"
end)
Here you create a source, do not attach it anywhere, so it's forgotten
at the end of the command execution.
What you need to do instead is setup a server.insert_metadata() node
in your streaming setup, and use the corresponding server command to
insert metadata. You can also use directly insert_metadata() to get
your hands on the insertion function (and perhaps create a command
from it).
Hope this helps,
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users