Jump to content

Radio streaming


Tunner

Recommended Posts

Posted

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.

Posted

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.

Posted

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?

Posted

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?

Posted (edited)

you might have posted in a wrong topic. this wouldnt help me at all , unless i want to waste time.

Edited by Guest
Posted

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.

Posted

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 :P

Posted

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.

Posted

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 :D

Posted

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?

Posted

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.

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