[Release] [JS] Radio

Hi can you help me add this radio?
http://rc.lt/grotuvas/?type=r&source=http%3A%2F%2F84.46.205.13%2Frc128.mp3&cover=4593

Yes, start your own icecast station, and then dj your own radio station. That’s what I’m doing.
http://www.adrpgta.com:8000/stream.ogg is my radio station.
I have all my own original music on there. I have a playlist that it goes thru and it’s just set to repeat. I have ~2.5 hours worth of music on the playlist. Since my server reboot time is 6 hours, it only plays thru the whole list (2 files) just twice before reboot. I will be adding more of my music on there over the coming months. I do plan on adding in-game specific ads on the station though, so you might not want to add it to your own server as they will be R-Rated in nature. So, use at your own risk.

You will not be able to stream mp3.

Is there any way or code snippet to stream outside a vehicle or location? With an option to change the volume if a player gets away from the entity/ipl?

LG Minkh

Nice script so far :wink:

Best thing to do is forward the broadcast through this site allowing for up to 5000 listeners for free, then its only 1 stream using less bandwidth… Plus it allows for ogg broadcasts.

Did Anyone find out how to show the real song playing?

yep Same question here

Why would I do that when I’m already doing that myself? Icecast is free to host. And I have copious amounts of bandwidth so that’s not an issue for me. And also my broadcast is already a .ogg format?

Look up the boombox code. There is a way that you can combine this script with the boombox script to make exactly what you’re talking about. I have looked into it already just haven’t had the time to toy around with it yet.

2 Likes

there is away to stream mp3 cause all radio stations where i live are mp3 a few unkown ones are ogg
but i talked to one of the dev’s he said look in html code and then you need to changed the method something like that but i can’t figure it out

@killerpoedel
Update your html to
https://cdnjs.cloudflare.com/ajax/libs/howler/2.1.1/howler.min.js

Then try AAC Streams Example: http://stream12.iloveradio.de/iloveradio8-aac.mp3

You will find much more radio stations :wink:

LG Minkh

2 Likes

So, the script inst working…
Where am I supposed to put the files?
Am I supposed to put something in the index html?
Here is what I ve put in the resource.lua

supersede_radio “RADIO_01_CLASS_ROCK” { url = “https://radioonline.com.pt/regiao/lisboa/#rfm-lisboa”, volume = 0.2, name = “[RFM]” }
supersede_radio “RADIO_02_POP” { url = “https://radioonline.com.pt/regiao/lisboa/#tsf-lisboa”, volume = 0.2, name = “[TSF]” }
supersede_radio “RADIO_03_HIPHOP_NEW” { url = “https://radioonline.com.pt/regiao/lisboa/#cidade-lisboa”, volume = 0.2, name = “[CidadeFM]” }
supersede_radio “RADIO_04_PUNK” { url = “https://radioonline.com.pt/regiao/lisboa/#mega-hits-lisboa”, volume = 0.2, name = “[MegaHits FM]” }
supersede_radio “RADIO_05_TALK_01” { url = “http://radiocomercial.iol.pt/player”, volume = 0.2, name = “[Radio Comercial]” }
supersede_radio “RADIO_06_COUNTRY” { url = “https://radioonline.com.pt/regiao/lisboa/#smooth-lisboa”, volume = 0.2, name = “[Smooth FM]” }
supersede_radio “RADIO_07_DANCE_01” { url = “https://radioonline.com.pt/regiao/lisboa/#orbital-lisboa”, volume = 0.2, name = “[Orbital]” }
supersede_radio “RADIO_08_MEXICAN” { url = “https://radioonline.com.pt/regiao/lisboa/#renascenca-lisboa”, volume = 0.2, name = “[Radio Renascenca]” }
supersede_radio “RADIO_12_REGGAE” { url = “https://radioonline.com.pt/regiao/lisboa/#antena-1-lisboa”, volume = 0.2, name = “[Antena 1]” }
supersede_radio “RADIO_13_JAZZ” { url = “https://radioonline.com.pt/regiao/lisboa/#oxigenio-lisboa”, volume = 0.2, name = “[Oxigénio]” }
supersede_radio “RADIO_14_DANCE_02” { url = “https://radioonline.com.pt/regiao/lisboa/#marginal-lisboa”, volume = 0.2, name = “[Radio Marginal]” }
supersede_radio “RADIO_15_MOTOWN” { url = “https://radioonline.com.pt/regiao/lisboa/#amalia-lisboa”, volume = 0.2, name= “[Radio Amália]” }
supersede_radio “RADIO_16_SILVERLAKE” { url = “https://radioonline.com.pt/regiao/lisboa/#tropical”, volume = 0.2, name= “[Tropical FM]” }
supersede_radio “RADIO_17_FUNK” { url = “https://radioonline.com.pt/regiao/lisboa/#horizonte-lisboa”, volume = 0.2, name= “[Rádio Horizonte]” }
supersede_radio “RADIO_18_90S_ROCK” { url = “https://radioonline.com.pt/regiao/lisboa/#antena-2-lisboa”, volume = 0.2, name= “[Antena 2]” }
supersede_radio “RADIO_19_USER” { url = “https://radioonline.com.pt/regiao/lisboa/#antena-3-lisboa”, volume = 0.2, name= “[Antena 3]” }
supersede_radio “RADIO_20_THELAB” { url = “https://radioonline.com.pt/regiao/lisboa/#sbsr-lisboa”, volume = 0.2, name= “[Super Bock Super Rock]” }
supersede_radio “RADIO_11_TALK_02” { url = “https://radioonline.com.pt/regiao/lisboa/#radio-sim-102-2-fm-lisboa”, volume = 0.2, name= “[Radio Sim]” }

Please help me out.
VRP server.

You need the music URL, not the webpage name.

Where can I go to find a Youtube Hip Hop playlist thats ogg

Oh. So how can I pass the radio in those websites to in game?
Do I do HTML? It asks for url :expressionless:

Does anyone know a website that I can use for my music

nui://radioname /index.html:0 Uncaught (in promise) TypeError: Failed to fetch

Seems its not working for me , only changed the first radio link with the one i wanted.

Nevermind got it fixed , for the ones dont rename the resource folder to something other then radio

Would it be possible to use .mp3 formats?

Very nice release, but is there a way that i can play the songs from a file in the server, like a file that contains songs and i can load the songs from there, i would really appreciate the help,
Thanks.

I used this plugin, everything worked,

Today only one radio station works and I do not know what the reason is.
Before, all of them worked for me.

On the Web browser all is fine example

supersede_radio "RADIO_04_PUNK" { url = "http://streams.bigfm.de/bigfm-hiphop-128-aac?usid=0-0-H-A-D-30.ogg", volume = 0.1, name = "BIG_FM_HIP_HOP" }

Does anyone know why stations in the game have stopped working?