PDA

View Full Version : Windows media player



Dakaa
12-21-2006, 10:51 AM
I wanna add this, http://img205.imageshack.us/img205/1893/wmprh8.png, lil window media player bar on my website playing one mp3 files only, how do I do it? :confused:

ThankYou!

:D

GypsyOwl
12-21-2006, 05:20 PM
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.

Dakaa
12-22-2006, 03:04 AM
<EMBED SRC="music.mp3" WIDTH="300" HEIGHT="45" AUTOSTART="TRUE" LOOP="infinite"></EMBED>

Where do I replace the URL with?

thetestingsite
12-22-2006, 03:06 AM
<EMBED SRC="music.mp3" WIDTH="300" HEIGHT="45" AUTOSTART="TRUE" LOOP="infinite"></EMBED>

Where do I replace the URL with?

Where you would like it to show up on the screen.

llamoafhappiness
07-11-2007, 12:37 PM
<EMBED SRC="music.mp3" WIDTH="300" HEIGHT="45" AUTOSTART="TRUE" LOOP="infinite"></EMBED>

Where do I replace the URL with?

Do you mean in the code? you put the url where it says "music.mp3"

Jack
07-11-2007, 01:30 PM
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... :)

heebie
07-12-2007, 12:42 PM
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?

toneranger
10-25-2007, 02:07 PM
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/windowsmedia/howto/articles/ad.aspx
http://www.microsoft.com/windows/windowsmedia/howto/articles/adswm.aspx

hth toneranger

Twey
10-25-2007, 04:36 PM
Crikey! I don't think you need to override every single default option!

toneranger
10-25-2007, 04:56 PM
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.