diff --git a/ios/RCTVideo.m b/ios/RCTVideo.m index 0f1227b11b..971e59844c 100644 --- a/ios/RCTVideo.m +++ b/ios/RCTVideo.m @@ -731,9 +731,13 @@ - (void)setProgressUpdateInterval:(float)progressUpdateInterval - (void)removePlayerLayer { - [_playerLayer removeFromSuperlayer]; + [_playerLayer removeFromSuperlayer]; + + @try { [_playerLayer removeObserver:self forKeyPath:readyForDisplayKeyPath]; - _playerLayer = nil; + } @catch (NSException *e) { } + + _playerLayer = nil; } #pragma mark - RCTVideoPlayerViewControllerDelegate