Old 7th June 2012, 10:54   #1
DJ-Erikjan
Junior Member
 
Join Date: Jun 2012
Posts: 4
Shoutcast listen.pls?sid=1 at a radio script??

Does anybody know what script is of the radio?

Ive got this script;

Quote:
<object type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" volume="50" height="44" width="257">
<param name="URL" value="http://IP:8000/" ref="" />
<param name="rate" value="1" />
<param name="balance" value="0" />
<param name="currentPosition" value="0" />
<param name="defaultFrame" value="" />

<param name="playCount" value="1" />
<param name="autoStart" value="1" />
<param name="currentMarker" value="0" />

<param name="invokeURLs" value="0" />
<param name="baseURL" value="" />
<param name="volume" value="50" />
<param name="mute" value="0" />
<param name="uiMode" value="mini" />
<param name="stretchToFit" value="-1" />
<param name="windowlessVideo" value="0" />
<param name="enabled" value="-1" />
<param name="enableContextMenu" value="-1" />
<param name="fullScreen" value="0" />
<param name="SAMIStyle" value="" />
<param name="SAMILang" value="" />
<param name="SAMIFilename" value="" />

<param name="captioningID" value="" />
<param name="enableErrorDialogs" value="0" />
<param name="_cx" value="3440" />
<param name="_cy" value="1111" />

<embed type="application/x-mplayer2" volume="50" pluginspage="http://www.microsoft.com/windows/windowsmedia/" filename="http://IP:8000/listen.pls?sid=1" src="http://IP:8000/" showcontrols="1" showdisplay="0" showstatusbar="1" showvideo="0" showpositioncontrols="0" height="44" width="400"></embed>
</object>
But this doesn't work..
Does anybody know, how it works??

Sorry for my bad English.
I come from the netherlands
DJ-Erikjan is offline   Reply With Quote
Old 7th June 2012, 10:58   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
WMP does not support the pls format.

you'd need to use /listen.m3u?sid=1 or /listen.asx?sid=1

-daz
DrO is offline   Reply With Quote
Old 7th June 2012, 11:29   #3
DJ-Erikjan
Junior Member
 
Join Date: Jun 2012
Posts: 4
Do you have an working radio script for me?
I can't make it. I don't know how it works...
DJ-Erikjan is offline   Reply With Quote
Old 7th June 2012, 13:09   #4
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,290
that's not a script, it's html

as you were told, replace

/listen.pls?sid=1

with

/listen.m3u?sid=1
or
/listen.asx?sid=1

also, it may not be obvious to you, but IP:8000 will never work ... unless you replace IP with an actual IP address - http://en.wikipedia.org/wiki/IP_address


e.g.

code:
<param name="URL" value="http://IP:8000/" ref="" />


would become something like

code:
<param name="URL" value="http://192.168.1.1:8000/" ref="" />


and

code:
filename="http://IP:8000/listen.pls?sid=1" src="http://IP:8000/"


would become something like

code:
filename="http://192.168.1.1:8000/listen.m3u?sid=1" src="http://192.168.1.1:8000/"


not guaranteeing that would work (even after you've replaced the ip address with what you need) but it's far more likely to work than what you've got

"If you don't like DNAS, write your own damn system"

So I did
jaromanda is offline   Reply With Quote
Old 9th June 2012, 07:15   #5
DJ-Erikjan
Junior Member
 
Join Date: Jun 2012
Posts: 4
Yes iknow, that IP:8000 don't work. But i don't like that anybody knows, what mij IP is. ;3

And your codes don't work for me..
DJ-Erikjan is offline   Reply With Quote
Old 9th June 2012, 09:14   #6
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,290
Quote:
Originally Posted by DJ-Erikjan View Post
Yes iknow, that IP:8000 don't work. But i don't like that anybody knows, what mij IP is. ;3

And your codes don't work for me..
as i sad, it's not guaranteed to work ... media player plugin must be present... even then, the html looks incomplete - personally, I don't see a benefit of embedding streams in web pages ... close or navigate away from the web page, lose the stream ... that's why media players like winamp etc exist ... to play media

"If you don't like DNAS, write your own damn system"

So I did
jaromanda is offline   Reply With Quote
Old 9th June 2012, 14:45   #7
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
<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://<serveraddress>/listen.m3u?sid=<streamnumber> " valuetype="ref" ref>
<param name="AudioStream" value="1">
<param name="AutoSize" value="0">
<param name="AutoStart" value="0">
<param name="AnimationAtStart" value="0">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="1">
<param name="DisplaySize" value="1">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="-1">
<param name="EnableTracker" value="-1">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="0">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="-1">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="-1">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="0">
<param name="ShowStatusBar" value="-1">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="333333">
<param name="VideoBorder3D" value="-1">
<param name="Volume" value="-1">
<param name="WindowlessVideo" value="-1">
<EMBED TYPE="application/x-mplayer2" SRC="http://<serveraddress>/listen.m3u?sid=<streamnumber>"
NAME="MediaPlayer"
WIDTH=320
HEIGHT=240>
</EMBED></OBJECT>
now that i've found the prior thread which was made about doing just this (http://forums.winamp.com/archive/ind.../t-340768.html), you will need to exactly change <serveraddress> to your public server address with port and exactly change <streamnumber> to the number of the stream

then it is up to you what else you do with the parameters to the WMP embedded control but that is not something for here as you're otherwise looking for WMP related support.

-daz
DrO is offline   Reply With Quote
Old 11th June 2012, 09:50   #8
DJ-Erikjan
Junior Member
 
Join Date: Jun 2012
Posts: 4
Thank you daz!!!
But he doesn't work..
DJ-Erikjan is offline   Reply With Quote
Old 11th June 2012, 10:50   #9
DrO
 
Join Date: Sep 2003
Posts: 27,873
i purposefully tested it before i posted it so i know it does work (and other people have said it works as per the other thread i'd linked to).

i pasted it into a test file, renamed as .html and then loaded it into Internet Explorer and with a valid <serveraddress> and <streamnumber> specified it allowed me to play the stream.

so either you're entering things incorrectly or your using a browser which does not support the embedded WMP player or the DNAS you're trying to use is blocking access / is inaccessible. either way i don't think there's much else i can do / say now (and just saying "doesn't work" is not very helpful for anyone to even try to help work out the cause of the issue).

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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