How to get info from an Ogg file?
Posted: 19 Nov 2016, 05:13
Specifically I want to get title and artist. I have found some random sparse info on where others have tried to do it, but doesn't work. I know that smoth at one point had a music widget that did it.
Info also doesn't seem to be in the wiki.
Here is the code block I found where someone was trying to do it.
Info also doesn't seem to be in the wiki.
Code: Select all
-- for key, val in pairs(oggInfo) do
-- Spring.Echo(key, val)
-- end
-- if (oggInfo.comments.TITLE and oggInfo.comments.TITLE) then
-- Spring.Echo("Song changed to: " .. oggInfo.comments.TITLE .. " By: " .. oggInfo.comments.ARTIST)
-- else
-- Spring.Echo("Song changed but unable to get the artist and title info")
-- end