Controlled Posted February 9, 2014 Posted February 9, 2014 Lets say I wanted someone to have the ability to stream a song from the web from something like: http://www.181.fm/playing.php?station=181-power I already have that part working, but is it possible to see what song is playing? Shows it on the site, I'm just not sure how to grab that information... Thanks
Anubhav Posted February 9, 2014 Posted February 9, 2014 https://wiki.multitheftauto.com/wiki/GetRadioChannel https://wiki.multitheftauto.com/wiki/GetSoundLevelData https://wiki.multitheftauto.com/wiki/GetSoundProperties Use theese. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Controlled Posted February 9, 2014 Author Posted February 9, 2014 I think you misunderstood. Sound Properties only allows: The first float is the sound's sample rate, the second one the sound's tempo, and the third one the pitch of the sound.
myonlake Posted February 9, 2014 Posted February 9, 2014 His functions are wrong, those are unrelated to the case. Use getSoundMetaTags. If I helped you, please click the like button on the right Thanks!
Controlled Posted February 9, 2014 Author Posted February 9, 2014 His functions are wrong, those are unrelated to the case.Use getSoundMetaTags. Tried it by using the Stream URL that I'm trying but it says its a bad sound pointer. Any way to fix this?
Moderators IIYAMA Posted February 10, 2014 Moderators Posted February 10, 2014 URL isn't a sound element. I am not sure if streamed data contains that kind of information. But you can always try. table = getSoundMetaTags ( element sound ) local sound =playSound ("URL") local table = getSoundMetaTags (sound ) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Saml1er Posted February 10, 2014 Posted February 10, 2014 URL isn't a sound element.I am not sure if streamed data contains that kind of information. But you can always try. table = getSoundMetaTags ( element sound ) local sound =playSound ("URL") local table = getSoundMetaTags (sound ) This will work if he uses "onClientSoundFinishedDownload" as much as I can tell.
Moderators IIYAMA Posted February 10, 2014 Moderators Posted February 10, 2014 aha, nice to know Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
myonlake Posted February 13, 2014 Posted February 13, 2014 It should work just fine. If I helped you, please click the like button on the right Thanks!
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