Results 1 to 2 of 2

Thread: Embedded Windows Media PLayer

  1. #1
    Join Date
    Sep 2005
    Posts
    1

    Embedded Windows Media PLayer

    Hello gang,

    I have a question on embedded windows media player within a web page. I have figured out the HTML code to embed the player now I want to figure out how to link many URL’s within the same page to this one media player (or make it appear to)

    So basically here’s what I have:

    I have the embedded media player at the left side of my page. On the right hand side of the page I have:
    Movie 1
    Movie 2
    Movie 3
    Movie 4
    (Ect)

    All of which I want to appear to play within the media player on the left hand side of the page. So when you click movie 1, it will play in the media player, then if you decide to click movie 2 it will stop movie 1 and start playing movie 2

    Make sense?

    Here’s the code I have for the Embedded media player:

    ########################################################################
    <!-- video window starts here -->
    <table border=1 style="border-collapse: collapse" bordercolor="#ffffff" cellpadding=0 cellspacing=0 id="table12"><tr><td valign=top>
    <OBJECT ID="MediaPlayer4" 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="AutoStart" VALUE="0">
    <PARAM NAME="FileName" VALUE="WHAT_EVER_MOVIE.wmv" ref>
    <PARAM NAME="ShowControls" VALUE="-1">
    <PARAM NAME="ShowStatusBar" VALUE="-1">
    <param name="AudioStream" value="-1">
    <param name="AutoSize" value="-1">
    <param name="AnimationAtStart" value="-1">
    <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="0">
    <param name="DisplaySize" value="0">
    <param name="Enabled" value="-1">
    <param name="EnableContextMenu" value="-1">
    <param name="EnablePositionControls" value="-1">
    <param name="EnableFullScreenControls" value="0">
    <param name="EnableTracker" value="-1">
    <param name="InvokeURLs" value="-1">
    <param name="Language" value="-1">
    <param name="Mute" value="0">
    <param name="PlayCount" value="1">
    <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="ShowAudioControls" value="-1">
    <param name="ShowDisplay" value="0">
    <param name="ShowGotoBar" value="0">
    <param name="ShowPositionControls" value="-1">
    <param name="ShowTracker" value="-1">
    <param name="TransparentAtStart" value="0">
    <param name="VideoBorderWidth" value="0">
    <param name="VideoBorderColor" value="0">
    <param name="VideoBorder3D" value="0">
    <param name="Volume" value="-600">
    <param name="WindowlessVideo" value="0">
    <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
    name="MediaPlayer4"
    width=320
    height=240
    autostart=1
    showcontrols=1>
    </EMBED></OBJECT>
    </td></tr></table>
    <p><i><b>Awards Presentation&nbsp;&nbsp;
    <font color="#FFFFFF">4.29Mb</font></b></i><!-- video window ends here -->
    ########################################################################



    Thanks ahead for any help!
    -SL

  2. #2
    Join Date
    Mar 2004
    Location
    China
    Posts
    3,315
    Rather than linking drectly to the .wmv file in your html, you would link to a Windows Media Meta File (aka a playlist file). These usually have the extention filename.wvx and are just short text files that tell the media player what videos to play. It's possible to do a number of effects such as put adverts next to you videos in the player or even include another html file inside the player window. You can string videos together so they run sequencially and so on.

    Have a look at
    http://www.microsoft.com/windows/win...trowmmeta.aspx
    http://www.microsoft.com/windows/win...laylists__DTEM

    Alternativly, just make 4 html pages with a different video embeded in each (or use some server side scripting to build the different scripts into one page) and then use ordinary <a> tag links to point to each page. After all, the 20kb or so to reload the html page is minor compaired to the mb sizes of the actual videos.

Similar Threads

  1. Problem Embedding Windows Media Player
    By icon kid in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 29 Sep 2005, 07:29 PM

Posting Permissions

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