Code: Select all
function descriptor()
return {
title = "Metadata over video",
capabilities = {"meta-listener"}
}
end
function activate()
end
function deactivate()
end
function meta_changed()
local vout=vlc.object.vout()
if vout then
local filename = vlc.strings.decode_uri(string.gsub(tostring(vlc.input.item():uri()), "^.*/(.-)$","%1"))
local metas=tostring(vlc.input.item():metas().title).."\n"..
tostring(vlc.input.item():metas().artist).."\n"..
tostring(vlc.input.item():metas().album).."\n"..
filename
vlc.osd.message(metas,channel1,"top-left",10*1000000) -- metadata over video for 10 seconds
end
end