Windows Media Player SDK banner art
PreviousNext

Plug-in Samples

This topic applies to Windows Media Player version 6.4 only.

The Windows Media Player plug-in samples show how to embed the Windows 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.

These samples are available in the Samples directory that was installed with the SDK. Find and open the readme.htm file to navigate through the samples.

The following table describes the plug-in samples.

Sample Description
Sample1 This 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.
Sample2 This HTML application shows how to use properties and methods exposed by the plug-in.
Sample3 This 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.
Sample4 This 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.
Sample5 This sample is similar to Sample4 but adds Microsoft® Visual Basic® Scripting Edition (VBScript) to handle Internet Explorer events on the same page.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.