Microsoft KB Archive/285154

= HTML Code for Embedding Windows Media Content =

Article ID: 285154

Article Last Modified on 5/30/2006

-

APPLIES TO


 * Microsoft Windows Media Services 4.0
 * Microsoft Windows Media Services 4.1
 * Microsoft Windows Media Player 6.4
 * Microsoft Windows Media Player 7.0
 * Microsoft Windows Media Player 7.1

-



This article was previously published under Q285154



SUMMARY
When you stream audio or video from a Windows Media server to a Windows Media Player client, you can embed the player in a Web page.



MORE INFORMATION
Use the following HTML code on a Web server to embed a Windows Media Player client:   Document Title 





      <Embed type=&quot;application/x-mplayer2&quot; pluginspage=&quot;http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx/&quot; filename=&quot;Station1.asx&quot; src=&quot;Station1.asx&quot; Name=MediaPlayer ShowControls=1 ShowDisplay=1 ShowStatusBar=1 width=320 height=240> </OBJECT>

</BODY> </HTML> Usually, you also need to create a .asx metafile that contains connection and playlist information so that you can connect to a Windows Media server.

For more information about ASX metafiles and embedding the Windows Media Player, see the following Web page:

MSDN Online Windows Media Developer Center

Additional query words: netshow wms wmp

Keywords: kbinfo KB285154

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.