등록은 다음과 같은 알림받을 :
#define MPAVControllerTimeDidJumpNotification @"MPAVControllerTimeDidJumpNotification"
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleTimeChanged:) name:MPAVControllerTimeDidJumpNotification object:nil];
-(void)handleTimeChanged:(NSNotification *)notification
{
static int i = 0;
NSDictionary * userInfo = notification.userInfo;
int lastPositionInSeconds = [[userInfo valueForKey:@"MPAVControllerTimeParameter"] intValue];
if(lastPositionInSeconds > markers[i])
{
i++;
[self showOverlay: i];
}
}
는 또한 MPAVControllerTimeDidJumpNotification 알림을 수신 중지 MPMoviePlayerPlaybackDidFinishNotification 알림을 받으려면 등록합니다.
So..what은 우유를 가지고있는 솔루션 이었습니까 ?? – Elsammak
나는 해결책을 찾지 못했고 프로젝트의 변화는 내가 그 해결책을 더 추구하지 않았다는 것을 의미했다. 하지만 난 여전히 아주 좋은 솔루션을 찾는 데 관심이 있어요 : – Milk78