No announcement yet.

Shoutcast listen.pls?sid=1 at a radio script??

  • Filter
  • Time
  • Show
Clear All
new posts

  • Shoutcast listen.pls?sid=1 at a radio script??

    Does anybody know what script is of the radio?

    Ive got this script;

    <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="" 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>
    But this doesn't work..
    Does anybody know, how it works??

    Sorry for my bad English.
    I come from the netherlands

  • #2
    WMP does not support the pls format.

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

    WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog


    • #3
      Do you have an working radio script for me?
      I can't make it. I don't know how it works...


      • #4
        that's not a script, it's html

        as you were told, replace




        also, it may not be obvious to you, but IP:8000 will never work ... unless you replace IP with an actual IP address -


        <param name="URL" value="http://IP:8000/" ref="" />
        would become something like

        <param name="URL" value="" ref="" />

        filename="http://IP:8000/listen.pls?sid=1" src="http://IP:8000/"
        would become something like

        filename="" src=""
        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


        • #5
          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..


          • #6
            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


            • #7
              <OBJECT ID="MediaPlayer" WIDTH=385 HEIGHT=147
              STANDBY="Loading Windows Media Player components..."

              <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>"
              now that i've found the prior thread which was made about doing just this (, 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.

              WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog


              • #8
                Thank you daz!!!
                But he doesn't work..


                • #9
                  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).

                  WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog