Dan
Dan

Reputation: 2804

How to tell when a QTMovie starts playing?

So QTMovies have QTMovieDidEndNotification, but no QTMovieDidStartNotification. How can I be notified when a QTMovie starts playing?

Upvotes: 3

Views: 1123

Answers (2)

Chuck
Chuck

Reputation: 237080

Start and pause are viewed by Quicktime as rate changes to 100% and 0% respectively. QTMovieRateDidChangeNotification is what you want, and check for the appropriate rate.

Upvotes: 3

Dan
Dan

Reputation: 2804

Answering my own question: the QTMovieRateDidChangeNotification is activated when the movie starts to play. Of course the documentation doesn't actually document that. Bah.

Upvotes: 5

Related Questions