Go Back   Winamp Forums > SHOUTcast > SHOUTcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 29th August 2001, 16:51   #1
Yezper
Junior Member
 
Join Date: Aug 2001
Location: Copenhagen, Denmark
Posts: 3
Embedding

Okay, I've read that it's impossible to embed WinAmp into a web page (darn! Would have been nice though!) So, instead of embedding WinAmp, I was planning on letting Windows Media Player take care of it at let it connect to the server.

It just won't let me... Every time I try to connect to a shoutcast server, it does nothing (embedded mode), or it tells me that it received invalid data on the control connection (full mode.)

Does anybody know what is wrong and what I can do to correct the error?

PS: I tried connecting to the .pls file, which didn't work. The scenario described above happens whenever I try to connect directly to the server on http://ip:port.

Any help appreciated.
Yezper is offline   Reply With Quote
Old 5th January 2004, 20:18   #2
Squalo
Junior Member
 
Join Date: Dec 2003
Posts: 14
yes the source link should be http://yourip:yourport/\"/

put the /\"/ it is very important and voila
Squalo is offline   Reply With Quote
Old 5th January 2004, 20:24   #3
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,109


"Bring out yer dead"

You have an extraneous \

FesterHead is offline   Reply With Quote
Old 5th January 2004, 20:40   #4
Squalo
Junior Member
 
Join Date: Dec 2003
Posts: 14
i swear here is part of the code

<OBJECT ID="MediaPlayer" WIDTH=385 HEIGHT=147
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="http://xx.xx.xx.xx:xxxx/\"/" valuetype="ref" ref>

you see you can test it on my webpage here just click on the windows media icon
Squalo is offline   Reply With Quote
Old 10th January 2004, 19:51   #5
chican0
Junior Member
 
Join Date: Jan 2004
Location: New Orleans, LA
Posts: 2
Send a message via AIM to chican0 Send a message via Yahoo to chican0
This is what I use for embeding:

PHP Code:
<script LANGUAGE="VBScript">
<!--
On Error Resume Next
lngMP70 
IsObject(CreateObject("WMPlayer.OCX"))

If (
lngMP70Then
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=""286"" height=""225"">"
document.write "<PARAM NAME=""url"" VALUE=""http://chican0.ath.cx:8000"">"//Put the url of your radio station here, (without the listen.pls . (example 167.8.456.3:8000)
document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">"
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "<PARAM NAME=""uiMode"" VALUE=""mini"">"
document.write "</OBJECT>"

Else
document.write "<OBJECT ID=MediaPlayer "
document.write " CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
document.write "CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
document.write " standby=""Loading Microsoft Windows Media Player components..."" "
document.write " TYPE=""application/x-oleobject"" width=""286"" height=""225"">"
document.write "<PARAM NAME=""FileName"" VALUE=""http://chican0.ath.cx:8000"">"//Put the url of your radio station here, (without the listen.pls . (example 167.8.456.3:8000)
document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">"
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "</OBJECT>"
End If

-->
  
</SCRIPT> 
chican0 is offline   Reply With Quote
Old 10th January 2004, 20:24   #6
jackherer
Major Dude
 
Join Date: Aug 2003
Posts: 942
That's fine although you don't need all the document.write VBscript commands, just write it out as HTML. The problem you are experiencing is most likely the fact that WMP is shit. If you have WMP V9 the above script would probably work. WMP v7.1 to V8 might work sometimes if your lucky (though probably not). V7 and below won't work ever.


Do not PM me for tech support !
jackherer is offline   Reply With Quote
Old 10th January 2004, 21:37   #7
chican0
Junior Member
 
Join Date: Jan 2004
Location: New Orleans, LA
Posts: 2
Send a message via AIM to chican0 Send a message via Yahoo to chican0
You are right, this script is to embed WM Player 7. I got it from the Microsoft website...


http://support.microsoft.com/default...en-us%3B279022


chican0 is offline   Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump