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

DVD Overlay

The DVD Overlay sample demonstrates the potential of integrating three-dimensional (3-D) content with digital video disc (DVD) playback using a scripting language and the framework provided by Microsoft® Internet Explorer 5, the Microsoft Windows Media™ Player control, and Microsoft DirectAnimation™.

Technical Information

This sample consists of two HTML pages layered on top of each other. Default.htm contains an embedded Windows Media Player control for DVD playback and the code that calls the overlay portion of the sample, Drag.htm.

<DIV ID=Top STYLE="visibility: visible; position: absolute; width: 100%; height: 100%;">
<IFRAME NAME="DAPage" SRC="../samples/overlayDVD/drag.htm" 
    WIDTH=100% HEIGHT=100% SCROLLING=NO MARGINWIDTH=0
    MARGINHEIGHT=0 FRAMEBORDER=0 VSPACE=0 NORESIZE >
</IFRAME>
</DIV>

DVD-Video appears in the background because the Windows Media Player is embedded in a DIV tag. This enables IFRAME content, in this case Drag.htm, to be layered over the DIV containing the Windows Media Player control. The IFRAME functions as a document within a document.

Drag.htm, layered over Default.htm, provides the DirectAnimation portion of the sample, containing the 3-D playback controls (.x files) and their animation behaviors.

Note  You can layer any static or dynamic HTML content over DVD-Video; you don't have to use DirectAnimation.

Operating Instructions

To operate this sample, right-click and drag the player controls that appear at the bottom of the page across the page and over the DVD-Video. The player controls indicate the state of the player by changing color. When DVD playback is paused, the player controls spin. To view this sample, click the following button. To view this sample, your system must be capable of DVD-Video playback and have the Microsoft® DirectShow® drivers installed.

To view the source code for Default.htm, click the following link.

Sample Code

To view the source code for Drag.htm, click the following link.

Sample Code


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