How to Insert a Windows Media Player in a Web Page

Embedding a Windows Media Player on a website allows you to present your viewers with videos they can watch right from your website. This is beneficial to visitors who don't want to be directed to a video hosting site (like YouTube) or have to download the video just to view it. For the video to work, visitors will have to have Windows Media Player installed on their computers; it comes standard in any Windows installation. You should also have it installed on your computer to test it out.

Things You'll Need

  • Web-authoring application
Show More

Instructions

    • 1

      Open the web page you want to add Windows Media Player to. Use a web-authoring application like Dreamweaver or Microsoft Expressions to do this. You can also use a text application like Notepad. Applications like Dreamweaver allow you to see exactly where the Windows Media Player is placed on the web page.

    • 2

      Switch to HTML view.

    • 3

      Copy and paste the following code into the scripting code for the web page:

      <OBJECT id="VIDEO" width="320" height="240"
      style="position:absolute; left:0;top:0;"
      CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
      type="application/x-oleobject">

      <PARAM NAME="URL" VALUE="your file or url">
      <PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
      <PARAM NAME="AutoStart" VALUE="True">
      <PARAM name="uiMode" value="none">
      <PARAM name="PlayCount" value="9999">
      </OBJECT>

    • 4

      Change the URL parameter to match the location of the Windows Media video file that you want to play. The parameter can be found in the line that looks like this: <PARAM NAME="URL" VALUE="your file or url">. Where it says "your file or url," add the location for where the file is location on the server.

    • 5

      Save the web page file and upload it to your server. Navigate to the web page that has the Windows Media Player embedded into it and click on "Play" to test it out and make sure it is working correctly.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured