I wanna add this,, lil window media player bar on my website playing one mp3 files only, how do I do it?
ThankYou!
![]()
I wanna add this,, lil window media player bar on my website playing one mp3 files only, how do I do it?
ThankYou!
![]()
http://www.vanguard.edu/webmaster/index.aspx?id=6680
you may find what you are looking for there. Vanguard.edu
I wouldn't be able to help with details (still a newbie)
Hope that helps.
Where do I replace the URL with?HTML Code:<EMBED SRC="music.mp3" WIDTH="300" HEIGHT="45" AUTOSTART="TRUE" LOOP="infinite"></EMBED>
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
By the way, if you don't want the audio to play "infinite" replace "infinite" with the number of times you want it to play. Zero "0" will only play once.
Have fun...![]()
"Only dead fish flow with the stream".
- Unknown
Is it possible to define more than one file without having to link to a play list? EG: "1.mp3, 2.mp3" for 1.mp3 to play then 2.mp3 to follow, building up a playlist on the fly?
To build a playlist manually, specify the files in an asx file. Save all music files in the same folder.
Call this asx file rather than an mp3 file,in this example the asx file is called test.asx replace this with the name of your file - right here is the player code....
<OBJECT ID="MediaPlayer" WIDTH=490 HEIGHT=52
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="test.asx" valuetype="ref" ref>
<param name="AudioStream" value="1">
<param name="AutoSize" value="0">
<param name="AutoStart" value="-1">
<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="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="0">
<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="test.asx"
NAME="MediaPlayer"
WIDTH=490
HEIGHT=60>
</EMBED></OBJECT>
paste this into an html page
Now the asx file:
<ASX VERSION="3.0">
<ENTRY CLIENTSKIP="NO">
<TITLE>player/site name</TITLE>
<REF HREF="file1.mp3" />
</ENTRY>
<ENTRY> <TITLE>ONLINE PLAYER</TITLE>
<REF HREF="file2.mp3" />
</ENTRY>
</ASX>
Or an advanced example:
<Asx Version = "3.0" >
<Title > Online Player</Title>
<Param Name = "AllowShuffle" Value = "no" />
<Entry clientskip="no">
<Duration value = "00:01:38.184" />
<Author > your name</Author>
<Param Name = "Bitrate" Value = "64000" />
<Param Name = "FileSize" Value = "786432" />
<Param Name = "FileType" Value = "mp3" />
<Param Name = "Is_Protected" Value = "False" />
<Param Name = "Is_Trusted" Value = "false" />
<Param Name = "IsVBR" Value = "False" />
<Param Name = "MediaType" Value = "audio" />
<Param Name = "SourceURL" Value = "bed1.mp3" />
<Title > Online Player</Title>
<Param Name = "type" Value = "downloaded" />
<Ref href = "bed1.mp3"/>
</Entry>
<Entry>
<Param Name = "Bitrate" Value = "64000" />
<Param Name = "FileSize" Value = "786432" />
<Param Name = "FileType" Value = "mp3" />
<Param Name = "Is_Protected" Value = "False" />
<Param Name = "Is_Trusted" Value = "false" />
<Param Name = "IsVBR" Value = "False" />
<Param Name = "MediaType" Value = "audio" />
<Param Name = "SourceURL" Value = "test1.mp3" />
<Param Name = "type" Value = "downloaded" />
<Ref href = "t1.mp3"/>
</Entry>
</Asx>
Playlists can also be servd dynamically with asp pages. Look here:
http://www.microsoft.com/windows/win...ticles/ad.aspx
http://www.microsoft.com/windows/win...les/adswm.aspx
hth toneranger
Crikey! I don't think you need to override every single default option!
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Sorry you are right. parameters overboard.
The example I posted was quickly pasted (edited to hide the staion id only) from the radio station online player that is set to play an advert before a live stream.
Every time a listener clicks listen live, they get an advert first (actually a spoken message of thanks and how to subscribe to premium membership etc) before the live stream kicks in.
Bookmarks