Hello everybody,

 

I use Virtual DJ for live,when i did live, liquid switch and it's ok but i
haven't meta ? no current tile ? Can you help me ?

 

Thanks !!!

 

Here my script

 

PS : i added flows in robotstream.com J

 

# function to display new metadatas

def print_meta(m) =

  def print(z) =

    label = fst(z)

    value = snd(z)

    log("Metadata: #{label}=#{value}")

  end

  list.iter(print,m)

end

 

 

meta = ref []

 

# Update current metadata

# converted in UTF8

def update_meta(m) =

  m = metadata.export(m)

  recode = string.recode(out_enc="UTF-8")

  def f(x) =

    (recode(fst(x)),recode(snd(x)))

  end

  meta := list.map(f,m)

end

 

# Apply update_metadata

# every time we see a new

# metadata

 

# Return the json content

# of meta

def get_meta(~method,~protocol,~data,~headers,uri) =

  m = !meta

  http_response(

    protocol=protocol,

    code=200,

    headers=[("Content-Type","application/json; charset=utf-8")],

    data=json_of(m)

  )

end

 

# INPUT SETTINGS

list = playlist(mode="normal", "player_30.lst")

list = on_metadata(print_meta, list)

default = single("/home/securite.mp3")

 

live = input.harbor(buffer=10.,max=20.,"test",port=1235,password="password")

source = fallback(track_sensitive = false,[ request.queue(id="request") ,
live, list, default])

 

# EFFECTS SETTINGS

source = crossfade(fade_in=0.,fade_out=3.,start_next=5.,source)

 

# Register get_meta at port

source = on_metadata(update_meta,source)

harbor.http.register(port=7894,"/getmeta",get_meta)

 

# OUTPUT SETTINGS

output.harbor(%mp3(bitrate=128),port=1234,mount="listen",url="http://www.goo
gle.com",icy_metadata="true",protocol="icy",source)

 

 

 

------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to