Jump to content

getSoundMetaTags


xXMADEXx

Recommended Posts

For some reason, the table is returning, but the data inside is returning nil :|

addEventHandler("onClientSoundStream",root, 
    function(suc,length,streamN) 
        if not suc then 
            return 
        end 
        local meta = getSoundMetaTags(source) 
        outputChatBox(meta.artist) 
    end 
) 

Link to comment

Am using MetaTags for my streaming script, and it varies. Some streamed mp3s will have MetaTags and some won't. Some have edited their mp3 files to advertise their website through the MetaTags.

I would also highly suggest you make a timer between 1.5 - 2 seconds before you try to fetch the MetaTags, this drastically increases the chance of successfully downloading the MetaTags - and thus does not return nil. This applies for sound length as well. It should not be necessary on local files.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...