Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 22nd August 2004, 20:49   #1
dubayou
Junior Member
 
Join Date: Aug 2004
Posts: 5
HowTO: Embed Windows Media Player and connect to shoutcast servers

You need to make 2 files the playlist.asx that has the location of the shoutcast server that windows media player reand and the page (test.html) that you want the media player on. This uses windows media player so that users dont need to download plugins or controls to listen.

This is how you set it up.
playlist.asx
code:

<asx version="3.0">
<title>TITLE</title>
<entry>
<title>TITLE</title>
<author>AUTHOR</author>
<ref href="http://radio.dubayou.com:8000/"/>
</entry>
</asx>


and in the test.html
code:

<OBJECT
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">

<PARAM NAME="fileName"VALUE="playlist.asx">
<PARAM NAME="animationatStart" VALUE="false">
<PARAM NAME="transparentatStart" VALUE="false">
<PARAM NAME="autoStart" VALUE="false">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="ShowDisplay" VALUE="false">
</OBJECT>


(note doesnt work on firefox trying to figure that out now)
dubayou is offline   Reply With Quote
Old 23rd August 2004, 03:49   #2
[FBI]_Inque187
Junior Member
 
Join Date: Jul 2004
Posts: 18
I got it to work this way. I aslo use http://www.no-ip.com services to forward to the source stream.

my Streaming Broadcast = http://fbi-sc.servegame.com:8000/listen.pls

Code for Embedding in webpage using Quicktime Plugin:
code:

<OBJECT ALIGN="middle" HEIGHT="24" WIDTH="250" TYPE="application/x-oleobject" STANDBY="Loading Microsoft Windows Media Player components . . ." CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701">
<PARAM NAME="AudioStream" VALUE="1">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AutoStart" VALUE="1">
<PARAM NAME="AnimationAtStart" VALUE="0">
<PARAM NAME="AllowScan" VALUE="0">
<PARAM NAME="AllowChangeDisplaySize" VALUE="0">
<PARAM NAME="AutoRewind" VALUE="0">
<PARAM NAME="Balance" VALUE="0">
<PARAM NAME="BaseURL" VALUE="http://www.theo.net/fbiclan/0pub/playlist.asx">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="0">
<PARAM NAME="ClickToPlay" VALUE="0">
<PARAM NAME="CursorType" VALUE="0">
<PARAM NAME="CurrentPosition" VALUE="0">
<PARAM NAME="CurrentMarker" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="0">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="0">
<PARAM NAME="DisplayMode" VALUE="0">
<PARAM NAME="DisplaySize" VALUE="4">
<PARAM NAME="Enabled" VALUE="0">
<PARAM NAME="EnableContextMenu" VALUE="0">
<PARAM NAME="EnablePositionControls" VALUE="0">
<PARAM NAME="EnableFullScreenControls" VALUE="0">
<PARAM NAME="EnableTracker" VALUE="0">
<PARAM NAME="Filename" VALUE="http://www.theo.net/fbiclan/0pub/playlist.asx">
<PARAM NAME="InvokeURLs" VALUE="0">
<PARAM NAME="Language" VALUE="0">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="0">
<PARAM NAME="SAMIStyle" VALUE="0">
<PARAM NAME="SAMIFileName" VALUE="0">
<PARAM NAME="SelectionStart" VALUE="0">
<PARAM NAME="SelectionEnd" VALUE="0">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="0">
<PARAM NAME="SendWarningEvents" VALUE="0">
<PARAM NAME="SendErrorEvents" VALUE="0">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="0">
<PARAM NAME="SendMouseMoveEvents" VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="0">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowControls" VALUE="0">
<PARAM NAME="ShowAudioControls" VALUE="0">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="0">
<PARAM NAME="ShowStatusBar" VALUE="1">
<PARAM NAME="ShowTracker" VALUE="0">
<PARAM NAME="TransparentAtStart" VALUE="0">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="Volume" VALUE="100">
<PARAM NAME="WindowlessVideo" VALUE="0">
<EMBED ALIGN="middle" SRC="http://www.theo.net/fbiclan/0pub/playlist.asx" HEIGHT="24" WIDTH="250" AUTOSTART="1" SHOWCONTROLS="1"></EMBED></OBJECT>


Last edited by [FBI]_Inque187; 23rd August 2004 at 04:39.
[FBI]_Inque187 is offline   Reply With Quote
Old 23rd August 2004, 23:03   #3
dubayou
Junior Member
 
Join Date: Aug 2004
Posts: 5
where is it calling the quicktime plugin - thats the same as mine just more params set
dubayou is offline   Reply With Quote
Old 23rd August 2004, 23:07   #4
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
This has already been done. Pointless really.

yeah, i'm back.
protegechris 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