Jump to content

live radio stream


[DMC]

Recommended Posts

Posted

[quote="

p.s if i loose my bet i m not admin anymore... :cry::cry: soo master scripters plzzz :mrgreen: if you make a script for me you are the BEST! :!::lol::lol:

lol xD nowan will make a script but they will say you're wrong :)

Posted
[quote="

p.s if i loose my bet i m not admin anymore... :cry::cry: soo master scripters plzzz :mrgreen: if you make a script for me you are the BEST! :!::lol::lol:

lol xD nowan will make a script but they will say you're wrong :)

DAMNIT!

  • Discord Moderators
Posted

If you install MTA 1.1 Unstable and MTASA 1.1 Data, the BASS audio library supports streamed sounds.

playSound and playSound3D takes an URL as argument, and a boolean to specify if an URL is used.

Looking up .asx, it says 'Advanced Stream Redirector File'.

I haven't tried, but here's the code if you want.

function radioplay()
local radio = playSound ("http://www.hot108.com/hot108_128k.asx", true, false)
setRadioChannel (0)
end
addCommandHandler ("radio", radioplay)

Basically MTA 1.1 does support "live radio" (streamed sound), whether or not the URL you specified works is another question.

Posted

sounds great but you need an good internet conection to play mta and stream a radio at the same time.

one question: where i can download mtasa 1.1 unstable?

Posted
sounds great but you need an good internet conection to play mta and stream a radio at the same time.

one question: where i can download mtasa 1.1 unstable?

well, what about a command handler? Only play the radio if wants.
  • 1 month later...

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