Jump to content

live radio stream


[DMC]

Recommended Posts

  • Discord Moderators

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.

Link to comment
  • 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...