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