Skip to content

Instantly share code, notes, and snippets.

@AlexJWayne
Created August 27, 2009 19:55
Show Gist options
  • Select an option

  • Save AlexJWayne/176511 to your computer and use it in GitHub Desktop.

Select an option

Save AlexJWayne/176511 to your computer and use it in GitHub Desktop.
// this is called by the internal API when the movie is done loading... we can find the MPItem
// from the user dictionary, and ask it for its duration (internal api)... we need the duration
// to find the halfway point
- (void)_movieDidPreload:sender {
NSDictionary *dict = [sender userInfo];
id item = [dict objectForKey:@"AVController_Item"];
[self prepareCRS:[item duration]];
[(id)super _movieDidPreload:sender];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment