Jump to content

Webradio on My Server


Recommended Posts

Salut Rouche,

Avec la fonction playSound (fonction client) tu peut y mettre des fichier .m3u c'est notament l'extension en général pour les webradios.

Avec Radionomy il te suffit de prendre le lien de la webradio avec l'extention .m3u

Ce qui donne avec la fonction playSound :

  
function onJoin() 
    local radio = playSound("http://listen.radionomy.com/parazhit-fr.m3u") 
    setSoundVolume(radio, 0.5) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onJoin) 
  

Ici j'ai fait le test avec cette webradio : http://www.radionomy.com/fr/search?q=saez#!/fr/radio/parazhit-fr

Aprés pour que la musique ce lance aprés sa connection tu peux utilisé l'event "OnPlayerLogin" coté serveur puis envoyé a un fichier client l'execution de la fonction playSound qui est une fonction Client

@+ ;)

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