Tunner Posted August 27, 2011 Posted August 27, 2011 hello, id like to know how do i make a radio sdtream. Playsound3d works without any problems with files, but when i specify URL, it never finds it. i even tried to tranform the website into a file (shortcut) but mta wasnt able to locate it either.
Callum Posted August 27, 2011 Posted August 27, 2011 The streaming URL must be an MP3, WAV, or any other supported file type.
Tunner Posted August 27, 2011 Author Posted August 27, 2011 i dotn get it, how could be online radio ever mp3? and yes, everytime similiar errors- the music cant be found, or sometimes whole resource cant be located everytime something like that. heres the script: function onResourceStart() local sound = playSound3D("http://www.977music.com/channels2/80s/wmplayer80s.php", -708.47106933594, 956.06134033203, 12.469902992249, true) setSoundMinDistance(sound, 5) setSoundMaxDistance(sound, 100) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) and meta and as i said it doesnt work even if i make the physicaly in the resource folder as shortut.
arnoldasz Posted August 27, 2011 Posted August 27, 2011 You can't stream this radio station, because there are no mp3/wav file, you can listen to it only in website.
MCvarial Posted August 27, 2011 Posted August 27, 2011 php scripts don't work obviously, like said before it must be a supported file type.
Tunner Posted August 27, 2011 Author Posted August 27, 2011 that is great...anyway how are we suposed to use the new online stream function when we obviously cant stream it? is there any other way to stream it from web? or any exmple of working URL?
H5N1 Posted August 27, 2011 Posted August 27, 2011 It's possible but you need direct url, not url to website.
Tunner Posted August 27, 2011 Author Posted August 27, 2011 i saw people speak about 2 options of streaming online. one was laggy and second one was not. but both of them were on web. what are they?
AGENT_STEELMEAT Posted August 27, 2011 Posted August 27, 2011 I suggest that you write your own 3D sounds script that uses normal playSound and adjusts the volume on every render.
Tunner Posted August 27, 2011 Author Posted August 27, 2011 (edited) you might have posted in a wrong topic. this wouldnt help me at all , unless i want to waste time. Edited August 27, 2011 by Guest
AGENT_STEELMEAT Posted August 27, 2011 Posted August 27, 2011 Your trying to do a 3D radio, right? And playSound3D isn't working out? Regular playSound seems to work with more audio formats/streams than playSound3D - so by making your own system youll be working around that. It's pretty simple.
Tunner Posted August 27, 2011 Author Posted August 27, 2011 aaah. well ill try if normal playsound support URLs. but i guess it will be the same as 3d. EDIT: yep, its totaly the same. no win here today
H5N1 Posted August 27, 2011 Posted August 27, 2011 Additionaly, you dont have to add URL into meta.xml. playSound ("http://www.video2mp3.net/load/YouTube/hTWKbfoikeg/1e76a5544a094fc9e5d4c3e5f20921f0/") - smeels like teen spirit. Try this.
Tunner Posted August 28, 2011 Author Posted August 28, 2011 no problem with finding it now, but it still doesnt play anything (and well the site you provided is empty). but anyway, script says unfinished string. and when i use exactly what you posted (only playSound, not 3d) it doesnt work but doesnt give erors wtf
H5N1 Posted August 28, 2011 Posted August 28, 2011 http://www16.speedyshare.com/files/3006 ... ullaby.mp3 try this url.
Tunner Posted August 28, 2011 Author Posted August 28, 2011 well, not even one of my internet browsers can display it (page not found). but i think it would work since it has .mp3 at the end, and the othes said that urls like this work. but it would play just 1 song right?
Tunner Posted August 31, 2011 Author Posted August 31, 2011 alright so this is the conclusion. MTA doesnt support internet radios which stream through windows media player, flash player or whatever. solution : some radio stations have link on their own wbesite, which contains either .m3u, .pls or any other standart stream files, and those work in MTA. if they dont have these buttons available, you are doomed and need to look for different radios. for example the link in first post doesnt work but this does : http://977music.com/itunes/80s.pls i firstly tried to download the .pls and include it as normal sound file, but it didnt work. this link above works alright.
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