i mean like www.habboxlive.com when theres no DJ it just plays music from where ever its uploaded.
Any ideas on how to make one?
Thanks :P
+rep for help
Printable View
i mean like www.habboxlive.com when theres no DJ it just plays music from where ever its uploaded.
Any ideas on how to make one?
Thanks :P
+rep for help
yeah its possible
They probs use and if statement to check wether someones connected. If they're not then it'll play the auto dj
ye well i like sorta knew it was possible since habbox have it?
anyone know how tho :(
As far as im aware, it requires a special streaming service for shoutcast.
Im unsure though.
Use php
Like
if($radio == $offline) {
include('radio.php');
}
then radio would play a play list
above code dont work..
Agh i wonder who made the one for habbox, its gotta be like when the radio offline it connects and plays music form a file at random
Ask Jin, hes the wizzzkidd. :P if he tells you is another thing thoughh.
mate pm me the stats and player ur currently using and ill try make something outa it
You could use a simple media player script and play all the files randomly in a directory.
Yeah and we need to tell him how to code it rofl
Hey, im pretty sure Baving coded Habboxlive's one. Ill ask him then get back to you.
- Matt
sc_trans is what you need :)
http://www.shoutcast.com/downloads/s..._posix_040.tgz
I posted this on my Robbie account like, last year.
Rarewolf, go have a look at www.streamsolutions.co.uk
They sell a Shoutcast content delivery service. You upload your mp3's to the shoutcast server directly and it will broadcast them automatically for you.
If anyone could tell me in detail how to use sc_trans, and code it so that you dont have to kick it off every time you want another dj to connect, +rep and 1hc to them. Thanks.
can some1 tell me what a sc_trans is
I would like to know aswel. Lol. xD
Btw Alex, +rep for that voiceover, and im still looking for someone to code sc_trans so I dont have to kick it off.
sc_trans is a linux program. You will require shell access to the server you want to run it on. You could make a simple PHP script that kicks the server.. Not hard :)
Example PHP script (You'll need to change the PID - In example this is 46636 - for the sc_tranc process):
PHP Code:<?php
$output = shell_exec('kill 46636');
echo "The command outputted: ";
echo $output;
?>
ok, im just lost now. It all seams complicated. Maybe some 1 put a tutorial :D
any1 no what i need and how to set up? coz ive been told i need a sc_trans and ftp to shoutcast host but im lost
There are a few companies which offer different packages and how they work.
Habbox Live
Habbox Live uses a dual shoutcast system. Where they basically have 2 shoutcast servers. One is for DJ's to connect to and the other is where the Auto DJ is constantly streaming.
On the radio stats script if there is no DJ online it switches to the Auto DJ stats page where people can tune in.
This method can be quite buggy as it means having 2 shoutcast servers.
The only way to turn the HabboxLive Auto DJ of is by signing into the stream control and stopping the server.
Constant Stream - 1 Shoutcast Server
There is a much better way of providing an Auto DJ service. Try looking at: -
http://www.streamsolutions.co.uk/
This company will stream music through your shoutcast server and it is much easier to start and stop the Auto DJ.
They provide a MSN bot where you can type cds stop 1 for example to stop the server. Using their MSN bot is a much better way of stopping the server, as it allows you to give DJ's acess to stop it without acessing many configuration settings.
THANK YOU i love u :) +rep
Edit : wait not sure i understand -
for the 1st one u buy 2 radios and use a code to go to the auto radio? is that correct?
2nd way : i hav a radio im not buying another :P
<?
STATS FILE HERE - REMOVE ECHOS
if($streamstatus = "0") {
echo "Media Player";
}else{
echo "Media Player";
}
?>
+rep if someone does a tut on it ;)
Just did.. get two servers.. and use mine ;P