Radio Nitro

opinionswrest

Member
Jan 6, 2020
117
5
Hi, any help on adding a shoutcast radio into nitro client

Need to know where to add it into and will the php radio player that comes with the radio work.
 

DDDDec

Tongue Boxing Champion 2023
May 30, 2017
441
275
u just need the audio tag with your shoutcast stream and some js to play/pause the sound u can use w3schools they provide a easy tutorial for this.

if youre using a habbo cms youll have jquery installed already most likely if not u can get the cdn from somewhere or download the files and host them yourself.


All you need is an audio tag like this <audio id="radioStreamUrl" src="(your radio source)"></audio> just after your head tag

and just before you end the body tag add a script including the js file code or just the js code itself dont matter either way

<script>
var x = document.getElementById("radioStreamUrl");

function playAudio() {
x.play();
}

function pauseAudio() {
x.pause();
}
</script>

then make 2 buttons like so

<a onClick="playAudio();">Play</a>
<a onClick="pauseAudio();">Pause</a>

If you meant the radio player they provide, it should tell you on the panel where the widget for the radio player is.
 
Last edited:

Users who are viewing this thread

Top