|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
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 |
|
|
|
|
|
#3 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,109
|
![]() "Bring out yer dead" You have an extraneous \ |
|
|
|
|
|
#4 |
|
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 |
|
|
|
|
|
#5 |
|
Junior Member
|
This is what I use for embeding:
PHP Code:
|
|
|
|
|
|
#6 |
|
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.
|
|
|
|
|
|
#7 |
|
Junior Member
|
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
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|