Setting up DirectDraw in DVDSample (Windows CE 5.0)

Send Feedback

DVDSample supports DVD-Video playback in a window on Windows CE device. For general information about the architectural requirements for windowed playback see DVD-Video in a Window.

DVDSample uses DirectDraw to mange the primary and overlay display surfaces needed to supported windowed playback. This functionality is contained within the DVDSample's CDvdVideo class.

The CDvdVideo::Start method does not control any DVD playback functions. Instead, it sets up the DirectDraw objects for the display surfaces by calling CDvdVideo::InitPrimarySurface and CDvdVideo::InitOverlaySurface.

In both cases DirectDraw surfaces are created and various parameters are assigned to them.

If the display adapter does not support color keying or video ports then the Start method fails and the m_fShowWindow member of the CDvdCore object is set to FALSE in the CDvdCore::Play method.

If the initialization process succeeds, then subsequent calls to the CDvdVideo::Show method will cause the overlay surface to be displayed at the specified screen coordinates.

See Also

DVD-Video in a Window | Overlay Surfaces | Video Ports | DirectDraw Application Development | Examining the DVDSample Sample Application

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.