Loading RCTVideo.m +2 −2 Changes for RCTVideo.m: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading Loading
RCTVideo.m +2 −2 Changes for RCTVideo.m: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading