Jump to content

getSoundMetaTags


xXMADEXx

Recommended Posts

Posted

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 
) 

Posted

That script seems fine, maybe stream sounds don't have some meta tags.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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.

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

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...