From 3b5319483902669e2bc799b9afcdbe6d1e6106f1 Mon Sep 17 00:00:00 2001 From: Baris Sencan Date: Fri, 26 Jun 2015 15:13:03 -0700 Subject: [PATCH] Rename playerItemDidEnd as playerItemDidReachEnd --- RCTVideo.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RCTVideo.m b/RCTVideo.m index f89f649c..668d8ca0 100644 --- a/RCTVideo.m +++ b/RCTVideo.m @@ -264,13 +264,13 @@ static NSString *const statusKeyPath = @"status"; dispatch_async(dispatch_get_main_queue(), ^{ // listen for end of file [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(playerItemDidEnd:) + selector:@selector(playerItemDidReachEnd:) name:AVPlayerItemDidPlayToEndTimeNotification object:[_player currentItem]]; }); } -- (void)playerItemDidEnd:(NSNotification *)notification +- (void)playerItemDidReachEnd:(NSNotification *)notification { [_eventDispatcher sendInputEventWithName:RNVideoEventEnd body:@{ @"target": self.reactTag