PDA

View Full Version : Possible Radio Problems



Acidude
15-08-2005, 10:08 AM
On my new fansite I think there might be problems with the radio. It works with Winamp, but i'm not sure about the standard version (the one that's already there). I'll just play some random songs. Please tell me if you can see a problem.

I'll post the codes I've used for it too.

First, the code used in the config_radio.php file:



<?php
//////////////////////////////////////////////////////////////////////////////////////////////
// Dinghy Radio Stats Information
// Grabs the xml from your radio server and displays it in a iframe that refreshes every 30 seconds.
// ©Daniel Brown www.gmtt.co.uk
//////////////////////////////////////////////////////////////////////////////////////////////
//Configuration
$scdef = "HabboPhunk Radio"; // Default station name to display when server or stream is down
$scip = "www.habbophunk.com"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "10040"; // port of shoutcast server
$scpass = "I'M NOT TELLING YOU XD"; // password to shoutcast server
//End configuration

?>


And now the one in the radio_stats.php file:



<object id="MediaPlayer" type="application/x-oleobject" height="40" standby="Please wait while we start the radio!" width="180" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param value="http://www.habbophunk.com:10040" name="http://www.habbophunk.com/">
<param value="1" name="rate">
<param value="0" name="balance">
<param value="0" name="currentPosition">
<param value="" name="defaultFrame">
<param value="1" name="playCount">
<param value="-1" name="autoStart">
<param value="0" name="currentMarker">
<param value="-1" name="invokeURLs">
<param value="" name="baseURL">
<param value="50" name="volume">
<param value="0" name="mute">
<param value="mini" name="uiMode">
<param value="0" name="stretchToFit">
<param value="0" name="windowlessVideo">
<param value="-1" name="enabled">
<param value="-1" name="enableContextMenu">
<param value="0" name="fullScreen">
<param value="" name="SAMIStyle">
<param value="" name="SAMILang">
<param value="" name="SAMIFilename">
<param value="" name="captioningID">
<param value="0" name="enableErrorDialogs">
<param value="4763" name="_cx">
<param value="1058" name="_cy"></object>


The one above is for the media player itsself. I'm not sure what the problem is, since I copied the codes exactly (other than editing where needed). Then again, there may not be a problem at all. If there's not a probelm there it might be that there's a problem elsewhere in the code. Please let me know.

Mentor
15-08-2005, 10:19 AM
id guess u need to change all teh attributes, plus youd need the right types as well etc for it to run,then remove any attributs your not useing "/

Acidude
15-08-2005, 10:46 AM
I have absolutely no idea which attributes to delete...

Help?

Acidude
15-08-2005, 04:58 PM
Would it work if I copied the code for another radio's media player but changed the port etc.?

Or is my host's support service likely to know what to do?

мϊкэ
15-08-2005, 06:23 PM
you dont seem to have a shoutcast server there your using your own site as the host? habbophunk.com:port? that cant be right ! becuase geocities dont host shoutcast!

Acidude
15-08-2005, 08:04 PM
you dont seem to have a shoutcast server there your using your own site as the host? habbophunk.com:port? that cant be right ! becuase geocities dont host shoutcast!

I've now found that my server is lc-hosting, but I don't think changing it in the original code will make any difference considering my luck.

Acidude
15-08-2005, 08:27 PM
Nope, no change.

If I'm DJing with Winamp it'll still work on the normal media player thingy won't it?

Aaaaaaagh this is so irritating... I've tried editing codes aswell but no luck. I'll try again tomorrow when my friend is DJing (nuless someone helps me before then :D).

I would edit posts but the button's gone away :(

frobberwob
16-08-2005, 10:50 AM
Hi. I'm the co-owner on this website. We've changed the code again, and it works if you press the play button. However, I don't know if the autostart section is working. It could be because I tried to listen while DJing, and it could just be that you can't use autostart WHILE djing. Anyway, i'll post the new media player code. I've fixed the config_radio page aswell.


<script language="VBScript">

<!--

On Error Resume Next

lngMP70 = IsObject(CreateObject("WMPlayer.OCX"))



If (lngMP70) Then

document.write "<OBJECT ID=MediaPlayer "

document.write "CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"

document.write "standby=""Loading Microsoft Windows Media Player components..."" "

document.write "TYPE=""application/x-oleobject"" width=""190"" height=""44"">"

document.write "<PARAM NAME=""url"" VALUE=""http://www.lc-hosting.com:10040"">"

document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">"

document.write "<PARAM NAME=""ShowControls"" VALUE=""0"">"

document.write "<PARAM NAME=""uiMode"" VALUE=""mini"">"

document.write "</OBJECT>"



End If



-->

</script>

Could someone just check through and make sure that's right? Thanks :)



you dont seem to have a shoutcast server there your using your own site as the host? habbophunk.com port? that cant be right ! becuase geocities dont host shoutcast!

We're not on geocities -_-'

мϊкэ
16-08-2005, 12:12 PM
We're not on geocities -_-'

i beg to differ everytime i go on your site it says at the bottom retreving from geocities ¬_¬ and your site is kinda rubbish anyway have you ever seen it in 1024x768 screen res or maybe its your browser this is what it looks like to me

http://i5.photobucket.com/albums/y173/xenigma/no_geocities_yer_right.gif

and your banner says "Hasssso Phunk"

Acidude
16-08-2005, 01:40 PM
Don't blame me for the banner. The co-owner thinks it's good. I don't know why the background has suddenly disappeared. But other than that it's fine in my browser. Our host is lc-hosting.com how, although it was geocities until we bought the domain name.

Anyway, back to radio help. Could someone check the codes? Thanks :D

мϊкэ
16-08-2005, 02:39 PM
Don't blame me for the banner. The co-owner thinks it's good. I don't know why the background has suddenly disappeared. But other than that it's fine in my browser. Our host is lc-hosting.com how, although it was geocities until we bought the domain name.

Anyway, back to radio help. Could someone check the codes? Thanks :D

you probably use the worst browser there is... IE! IE is really unsafe aswell!

http://browsehappy.com/

Acidude
16-08-2005, 04:09 PM
Haha his ears are huge xD

I guess i'll just have to try it while my friend is DJing from his house.

I've never had a problem with IE anyway.

Want to hide these adverts? Register an account for free!