Programming Tips - MFC: Using the Quicktime control in MFC, tell if a movie is playing?

Date: 2009oct28 Language: C/C++ Framework: MFC OS: Windows Q. MFC: Using the Quicktime control in MFC, 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; }