Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Managing MPEG-1 playing through C++/MCI

Posted on 1999-01-27
3
200 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to use Dotfuscator CE with Visual Studio 2010 Installer? 4 316
Best book to learn C++ 4 84
Recommendation vb6 to vb.net or others 14 175
Where did System.Data.Objects go? 2 40
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…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

840 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