Controlled Posted February 9, 2014 Share 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 Link to comment
Anubhav Posted February 9, 2014 Share Posted February 9, 2014 https://wiki.multitheftauto.com/wiki/GetRadioChannel https://wiki.multitheftauto.com/wiki/GetSoundLevelData https://wiki.multitheftauto.com/wiki/GetSoundProperties Use theese. Link to comment
Controlled Posted February 9, 2014 Author Share 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. Link to comment
myonlake Posted February 9, 2014 Share Posted February 9, 2014 His functions are wrong, those are unrelated to the case. Use getSoundMetaTags. Link to comment
Controlled Posted February 9, 2014 Author Share 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? Link to comment
Moderators IIYAMA Posted February 10, 2014 Moderators Share 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 ) Link to comment
Saml1er Posted February 10, 2014 Share 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. Link to comment
Moderators IIYAMA Posted February 10, 2014 Moderators Share Posted February 10, 2014 aha, nice to know Link to comment
Controlled Posted February 13, 2014 Author Share Posted February 13, 2014 Didn't Resolve anything Link to comment
WASSIm. Posted February 13, 2014 Share Posted February 13, 2014 getSoundMetaTags(theSound)["title"] Link to comment
myonlake Posted February 13, 2014 Share Posted February 13, 2014 It should work just fine. 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