From 7615e5dcd1d0833e00723eda9f0dfb7f6b49b903 Mon Sep 17 00:00:00 2001 From: Jovan Stanimirovic Date: Thu, 22 Aug 2019 10:36:33 +0200 Subject: [PATCH] fix invert boolean property --- ios/Video/RCTVideo.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index b4a3f063..2791654c 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -89,6 +89,7 @@ static int const RCTVideoUnset = -1; if ((self = [super init])) { _eventDispatcher = eventDispatcher; + _automaticallyWaitsToMinimizeStalling = YES; _playbackRateObserverRegistered = NO; _isExternalPlaybackActiveObserverRegistered = NO; _playbackStalled = NO; @@ -869,7 +870,7 @@ static int const RCTVideoUnset = -1; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil]; } - if (@available(iOS 10.0, *) && _automaticallyWaitsToMinimizeStalling) { + if (@available(iOS 10.0, *) && !_automaticallyWaitsToMinimizeStalling) { [_player playImmediatelyAtRate:1.0]; } else { [_player play];