Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Radio Nitro
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="DDDDec" data-source="post: 477800" data-attributes="member: 75952"><p>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.</p><p></p><p>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.</p><p></p><p>[URL unfurl="true"]https://www.w3schools.com/jsref/met_audio_play.asp[/URL]</p><p></p><p>All you need is an audio tag like this <audio id="radioStreamUrl" src="(your radio source)"></audio> just after your head tag</p><p></p><p>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</p><p></p><p><script></p><p>var x = document.getElementById("radioStreamUrl");</p><p></p><p>function playAudio() {</p><p> x.play();</p><p>}</p><p></p><p>function pauseAudio() {</p><p> x.pause();</p><p>}</p><p></script></p><p></p><p>then make 2 buttons like so</p><p></p><p><a onClick="playAudio();">Play</a></p><p><a onClick="pauseAudio();">Pause</a></p><p></p><p>If you meant the radio player they provide, it should tell you on the panel where the widget for the radio player is.</p></blockquote><p></p>
[QUOTE="DDDDec, post: 477800, member: 75952"] 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. [URL unfurl="true"]https://www.w3schools.com/jsref/met_audio_play.asp[/URL] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Radio Nitro
Top