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; }