Fix indent and respect previous rate

This commit is contained in:
Daniel Mariño Ruiz 2019-09-22 07:40:53 +02:00 committed by GitHub
parent 461209f344
commit ed335f3b02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -869,12 +869,12 @@ 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:_rate];
} else { } else {
[_player play]; [_player play];
[_player setRate:_rate]; [_player setRate:_rate];
} }
[_player setRate:_rate]; [_player setRate:_rate];
} }