Jump to content

Radio streaming


Tunner

Recommended Posts

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.

Link to comment

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.

Link to comment

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

Link to comment

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.

Link to comment

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