Jump to content
  • 0

Please help me


khalid-mks

Question

hello

I have a radio on the Internet

I've Mode making in the form of direct radio

But when you gotta work

Writes in F8

BASS ERROR 0 in PlayStream b3D = false path = http://xstraradio.listen2myradio.com/

my client

local sound = "http://xstraradio.listen2myradio.com/" 
addEvent("startSound",true) 
addEvent("stopSound",true) 
  
function start (  ) 
    isPlay = playSound( sound, true ) 
end 
addEventHandler("startSound", root, start) 
  
function stop (  ) 
     stopSound( isPlay ); 
end 
addEventHandler("stopSound", root, stop) 

my server

function startSound (    player    ) 
     if getElementData(player,"isRunning") == false then 
           setElementData(player,"isRunning", true) 
                triggerClientEvent( getRootElement( ), "startSound", getRootElement (  ) ) 
      else 
            setElementData(player,"isRunning", false) 
            triggerClientEvent( getRootElement( ), "stopSound", getRootElement( ) ) 
      end 
end 
addCommandHandler("sound", startSound) 

Waiting for help

Thank you

Link to comment

2 answers to this question

Recommended Posts

  • 0
  • MTA Team

You need to use the direct URL of the audio stream. Looking at the page source, it might be:

"http://xstraradio.listen2myradio.com/media/playradio2504549.asx" 

If that doesn't work, ask Listen2MyRadio support.

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