Solved

Managing MPEG-1 playing through C++/MCI

Posted on 1999-01-27
3
201 Views
Last Modified: 2013-12-03
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
Comment
Question by:rwoollard
3 Comments
 
LVL 3

Accepted Solution

by:
PinTail earned 100 total points
ID: 1419328
Where's the question ?
0
 

Author Comment

by:rwoollard
ID: 1419329
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
 
LVL 3

Expert Comment

by:RJSoft
ID: 13371563
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question