How to display a banner image with Windows Media Player
February 4th, 2008To display a banner image (along with a link to more information) while video is rendered in Windows Media Player, add an entry to a Windows Media metafile (a file with a .wvx file name extension) by doing the following:
-
In a text editor such as Notepad, add the following basic code while substituting the example server, paths, and file names with the appropriate information:
<ASX version = “3.0″>
<TITLE>Sample Demo</TITLE>
<BANNER HREF=”http://WebServerName/Images/Banner.bmp”>
<ABSTRACT>Learn more about our company</ABSTRACT>
<MOREINFO HREF=”http://WebServerName.com”/>
</BANNER>
<ENTRY>
<REF HREF=”mms://ServerName/PublishingPointName/Video.wmv”/>
</ENTRY>
</ASX>
In the previous code, the HREF attribute of the BANNER element has the value http://WebServerName/Images/Banner.bmp that refers to a banner image (194 pixels wide by 32 pixels high) that is stored on a Web server. The text contained in the ABSTRACT element displays as a ToolTip when the user hovers over the banner graphic. Finally, when a user clicks the banner graphic, the URL provided in the MOREINFO element opens in a Internet browser, such as Internet Explorer. In this example, one digital media file named Video.wmv, which is stored on a computer running Windows Media Services, plays back in the Player. - On the File menu, click Save, type a file name, type .wvx as the file name extension, and then click Save.
- Copy the Windows Media metafile with the .wvx file name extension to your Web server.
- In a Web page, provide a link to the Windows Media metafile.
