diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index a757c08a50..38a3d6d05f 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -223,6 +223,10 @@ - (void)dealloc #pragma mark - App lifecycle handlers +- (BOOL)canBecomeFirstResponder { + return YES; +} + - (void)applicationWillResignActive:(NSNotification *)notification { if (_playInBackground || _playWhenInactive || _paused) return; @@ -233,6 +237,8 @@ - (void)applicationWillResignActive:(NSNotification *)notification - (void)applicationDidEnterBackground:(NSNotification *)notification { + [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; + if (_playInBackground) { // Needed to play sound in background. See https://developer.apple.com/library/ios/qa/qa1668/_index.html [_playerLayer setPlayer:nil]; @@ -242,6 +248,8 @@ - (void)applicationDidEnterBackground:(NSNotification *)notification - (void)applicationWillEnterForeground:(NSNotification *)notification { + [[UIApplication sharedApplication] endReceivingRemoteControlEvents]; + [self applyModifiers]; if (_playInBackground) { [_playerLayer setPlayer:_player];