Results 1 to 10 of 10

Thread: Windows media player

  1. #1
    Join Date
    Dec 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Windows media player

    I wanna add this, , lil window media player bar on my website playing one mp3 files only, how do I do it?

    ThankYou!


  2. #2
    Join Date
    Sep 2006
    Location
    Living My Dreams
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  3. #3
    Join Date
    Dec 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    HTML Code:
    <EMBED SRC="music.mp3" WIDTH="300" HEIGHT="45" AUTOSTART="TRUE" LOOP="infinite"></EMBED>
    Where do I replace the URL with?

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by Dakaa View Post
    HTML Code:
    <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.
    "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

  5. #5
    Join Date
    Jul 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Dakaa View Post
    HTML Code:
    <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"

  6. #6
    Join Date
    May 2006
    Posts
    259
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    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

  7. #7
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  8. #8
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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!

  10. #10
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •