From f98ce00a304feb6dcfffe07db58c390ebfbdc580 Mon Sep 17 00:00:00 2001 From: tobias Date: Thu, 2 Jun 2016 07:58:38 +0200 Subject: [PATCH] Code style changes --- RCTVideo.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RCTVideo.m b/RCTVideo.m index eba681ca..44879f3f 100644 --- a/RCTVideo.m +++ b/RCTVideo.m @@ -63,7 +63,7 @@ static NSString *const playbackRate = @"rate"; _progressUpdateInterval = 250; _controls = NO; _playerBufferEmpty = YES; - _playInBackground = false; + _playInBackground = false; _playWhenInactive = false; [[NSNotificationCenter defaultCenter] addObserver:self @@ -140,10 +140,10 @@ static NSString *const playbackRate = @"rate"; - (void)applicationDidEnterBackground:(NSNotification *)notification { - if (_playInBackground) { - // Needed to play sound in background. See https://developer.apple.com/library/ios/qa/qa1668/_index.html - [_playerLayer setPlayer:nil]; - } + if (_playInBackground) { + // Needed to play sound in background. See https://developer.apple.com/library/ios/qa/qa1668/_index.html + [_playerLayer setPlayer:nil]; + } } - (void)applicationWillEnterForeground:(NSNotification *)notification