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

View File

@@ -869,12 +869,12 @@ static int const RCTVideoUnset = -1;
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
}
if (@available(iOS 10.0, *) && !_automaticallyWaitsToMinimizeStalling) {
[_player playImmediatelyAtRate:1.0];
} else {
[_player play];
[_player setRate:_rate];
}
if (@available(iOS 10.0, *) && !_automaticallyWaitsToMinimizeStalling) {
[_player playImmediatelyAtRate:_rate];
} else {
[_player play];
[_player setRate:_rate];
}
[_player setRate:_rate];
}