xXMADEXx Posted April 19, 2013 Share Posted April 19, 2013 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
Castillo Posted April 19, 2013 Share Posted April 19, 2013 That script seems fine, maybe stream sounds don't have some meta tags. Link to comment
Dealman Posted April 24, 2013 Share Posted April 24, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now