Dave's Brain

Browse - programming tips - is mfc quicktime movie playing

Date: 2009oct28
Language: C/C++
Platform: MFC
OS: Windows

Q.  I am using the Quicktime control in MFC.
How I can tell if a movie is playing?
(get_StreamingStatusCode() doesn't say.)

A.  I tried many things and finally found that the rate will tell you.

	BOOL IsPlaying(const CComPtr<IQTMovie> movie)
	{
		float	rate;

		if (FAILED(movie->get_Rate(&rate))) return FALSE;
		return rate > 0.0;
	}
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2010, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.