fix formatting
fix crash iOS9
This commit is contained in:
parent
008f5f03b0
commit
0cfc73252c
@ -88,8 +88,7 @@ static int const RCTVideoUnset = -1;
|
||||
{
|
||||
if ((self = [super init])) {
|
||||
_eventDispatcher = eventDispatcher;
|
||||
|
||||
_automaticallyWaitsToMinimizeStalling = YES;
|
||||
_automaticallyWaitsToMinimizeStalling = YES;
|
||||
_playbackRateObserverRegistered = NO;
|
||||
_isExternalPlaybackActiveObserverRegistered = NO;
|
||||
_playbackStalled = NO;
|
||||
@ -378,7 +377,9 @@ static int const RCTVideoUnset = -1;
|
||||
_isExternalPlaybackActiveObserverRegistered = YES;
|
||||
|
||||
[self addPlayerTimeObserver];
|
||||
[self setAutomaticallyWaitsToMinimizeStalling:_automaticallyWaitsToMinimizeStalling];
|
||||
if (@available(iOS 10.0, *)) {
|
||||
[self setAutomaticallyWaitsToMinimizeStalling:_automaticallyWaitsToMinimizeStalling];
|
||||
}
|
||||
|
||||
//Perform on next run loop, otherwise onVideoLoadStart is nil
|
||||
if (self.onVideoLoadStart) {
|
||||
|
Loading…
Reference in New Issue
Block a user