Dave's Brain

Browse - Programming Tips - I am using the Quicktime control in MFC.

Date: 2009oct28
Language: C/C++
Framework: 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; }

Add a comment

Sign in to add a comment
Copyright © 2008-2017, 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.