• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

Managing MPEG-1 playing through C++/MCI

We have been using MCI to display and control AVI playing for years with no problems. We can use MCI to display MPEG-1 files as well. The problem is that MPEGs always play in their own window (even though we asked them to play on the canvas of another window) and that MPEG-1 window momentarily snaps to an origin of 0,0 on the screen, before placing correctly. The window also always starts out black, even though the first frame of the clip is not black (clearly, it's processing a WM_ERASEBKGRND message on its own).
0
rwoollard
Asked:
rwoollard
1 Solution
 
PinTailCommented:
Where's the question ?
0
 
rwoollardAuthor Commented:
How do you spawn an MPEG-based video clip through MCI calls in C++ without having the initial window pop to the top left corner of the screen (0,0)?
0
 
RJSoftCommented:
Just in case anyone wants to know.

from the mciSendCommand set...

You use the Window command and set the attribute to SW_HIDE
which hides the initial screen.

then use the Put command  to adjust the location and then play.

RJ
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now