Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents

Media Player Plug-in Samples

The Microsoft® Windows Media™ Player plug-in samples show how to embed the Media Player control in a Web page so that the scripted page will work in browsers that support embedding, for example, Netscape Navigator and Microsoft® Internet Explorer.

Scripting for Netscape Navigator differs somewhat from that for Internet Explorer. Browser compatibility can be an issue if you want your Web pages to be rendered in both browsers. There are differences in how Windows Media Player can be embedded in an HTML page, and in how events are handled and properties of the control are set and retrieved.

Five samples are provided to demonstrate how to use the Windows Media Player plug-in.

If you used the default installation path for the SDK, the HTML source files are in the Program Files\Windows Media Components\Sdk\Samples\Plugin directory. Find and open the readme.htm file to navigate through the samples. Otherwise, find the readme.htm located in the Samples\Plugin directory in the location where you installed the SDK.

The following table describes the plug-in samples.

SampleDescription
Sample1This simple HTML application shows how to embed the plug-in in an HTML page so that the page works in Netscape Navigator, Internet Explorer, and other browsers that support embedding.
Sample2This HTML application shows how to use properties and methods exposed by the plug-in.
Sample3This sample application shows how to handle events with basic scripting for multiple browsers. It demonstrates event handling in the form of alert boxes that appear whenever the state of the Windows Media Player control changes, or a script command is received from the media stream. These script commands are text strings that contain a transcript of the audio portion of the stream.
Sample4This sample shows more advanced scripting for event handling. Its behavior is the same as Sample3, but the HTML script uses external Microsoft® JScript® proxy files (.js) as containers for the scripting necessary to receive and handle the events and methods.
Sample5This sample is similar to Sample4 but adds Microsoft® Visual Basic® Scripting Edition (VBScript) to handle Internet Explorer events on the same page.

Top of Page Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.