I have the following code:
(void)loadStateChanged:(NSNotification*)notification
{
if ([[movie attributeForKey:QTMovieLoadStateAttribute] longValue] >= kMovieLoadStatePlayable)
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
long movieScale = [[movie attributeForKey:QTMovieTimeScaleAttribute] longValue];
[movie setCurrentTime:QTMakeTime(0, movieScale)];
[movie play];
}
and it is throwing this error:
error: 'kMovieLoadStatePlayable' undeclared (first use in this function)
I believe that kMovieLoadStatePlayable belongs to a QuickTime framework, and I have both QTKit and and the QuickTime framework in my program, but I can't figure out why it is erroring here. I know it is something to do with these frameworks.