Code style changes
This commit is contained in:
parent
8bc165ca48
commit
f98ce00a30
10
RCTVideo.m
10
RCTVideo.m
@ -63,7 +63,7 @@ static NSString *const playbackRate = @"rate";
|
|||||||
_progressUpdateInterval = 250;
|
_progressUpdateInterval = 250;
|
||||||
_controls = NO;
|
_controls = NO;
|
||||||
_playerBufferEmpty = YES;
|
_playerBufferEmpty = YES;
|
||||||
_playInBackground = false;
|
_playInBackground = false;
|
||||||
_playWhenInactive = false;
|
_playWhenInactive = false;
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||||
@ -140,10 +140,10 @@ static NSString *const playbackRate = @"rate";
|
|||||||
|
|
||||||
- (void)applicationDidEnterBackground:(NSNotification *)notification
|
- (void)applicationDidEnterBackground:(NSNotification *)notification
|
||||||
{
|
{
|
||||||
if (_playInBackground) {
|
if (_playInBackground) {
|
||||||
// Needed to play sound in background. See https://developer.apple.com/library/ios/qa/qa1668/_index.html
|
// Needed to play sound in background. See https://developer.apple.com/library/ios/qa/qa1668/_index.html
|
||||||
[_playerLayer setPlayer:nil];
|
[_playerLayer setPlayer:nil];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)applicationWillEnterForeground:(NSNotification *)notification
|
- (void)applicationWillEnterForeground:(NSNotification *)notification
|
||||||
|
Loading…
Reference in New Issue
Block a user