fix invert boolean property
This commit is contained in:
parent
0a361d1d0f
commit
7615e5dcd1
@ -89,6 +89,7 @@ static int const RCTVideoUnset = -1;
|
|||||||
if ((self = [super init])) {
|
if ((self = [super init])) {
|
||||||
_eventDispatcher = eventDispatcher;
|
_eventDispatcher = eventDispatcher;
|
||||||
|
|
||||||
|
_automaticallyWaitsToMinimizeStalling = YES;
|
||||||
_playbackRateObserverRegistered = NO;
|
_playbackRateObserverRegistered = NO;
|
||||||
_isExternalPlaybackActiveObserverRegistered = NO;
|
_isExternalPlaybackActiveObserverRegistered = NO;
|
||||||
_playbackStalled = NO;
|
_playbackStalled = NO;
|
||||||
@ -869,7 +870,7 @@ static int const RCTVideoUnset = -1;
|
|||||||
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
|
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (@available(iOS 10.0, *) && _automaticallyWaitsToMinimizeStalling) {
|
if (@available(iOS 10.0, *) && !_automaticallyWaitsToMinimizeStalling) {
|
||||||
[_player playImmediatelyAtRate:1.0];
|
[_player playImmediatelyAtRate:1.0];
|
||||||
} else {
|
} else {
|
||||||
[_player play];
|
[_player play];
|
||||||
|
Loading…
Reference in New Issue
Block a user