Answered Embedded Media Player won't play

  • Wednesday, March 06, 2013 9:07 PM
     
      Has Code

    This is driving me mad! I've been working on it for days.

    Here is the setup:

    IIS 6.0 is running a Web Site called webinar which is binded on an IP address on port 80. It has headers called media.domain.local and media.domain.net. The local path points to c:\inetpub\webinar.

    I have Windows Media Services running. I have a published point for a .wmv file.

    In the c:\inetpub\webinar folder I have .htm files associated with the published points on the media services server.

    I've included my object block below:

    <OBJECT ID="MediaPlayer"
      CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
      STANDBY="Loading Windows Media Player components..."
      TYPE="application/x-oleobject"
    CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" style="width: 924px; height: 668px">
    
      <div class="style1">
    
      <PARAM name="autoStart" value="-1">
      <PARAM name="filename" value="http://media.domain.net/Project_Cost_Management">
    
    	<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="4">
    	<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="ShowControls" value="-1">
    	<param name="ShowAudioControls" value="-1">
    	<param name="ShowDisplay" value="0">
    	<param name="ShowGotoBar" value="0">
    	<param name="ShowPositionControls" value="-1">
    	<param name="ShowStatusBar" 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"
        SRC="http://WebServer/MyFile.wvx"
        NAME="MediaPlayer"
      </EMBED>
    </div>
    </OBJECT>

    At one point this was working but the filename value was different and pointed to a different domain. Now the media player loads properly but when you click on the play button it does nothing. 

    Thanks for any help.


    • Edited by ttrulis Wednesday, March 06, 2013 9:07 PM
    •  

All Replies

  • Tuesday, March 12, 2013 7:18 PM
    Owner
     
     Answered Has Code

    First, you should use the newer GUID for Windows Media Player.  The one you listed above is over 10 years old.  Use the following GUID and code instead:

    <object ID="MediaPlayer" height="310" width="320" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
      <param name="URL" value="http://media.domain.net/Project_Cost_Management">
    </object>

    Most of the other parameters can be used, but are unnecessary.