Solved

Managing MPEG-1 playing through C++/MCI

Posted on 1999-01-27
3
197 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
Comment Utility
Where's the question ?
0
 

Author Comment

by:rwoollard
Comment Utility
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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now