Skip to content

Commit

Permalink
Merge pull request #1 from leancodepl/fix/ios-speed-setting
Browse files Browse the repository at this point in the history
Enable fast-forward on iOS
  • Loading branch information
mkucharski17 authored Jul 5, 2024
2 parents 560f92d + 1a1cadd commit 7f4370f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Classes/BetterPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,8 @@ - (void)setSpeed:(double)speed result:(FlutterResult)result {
result([FlutterError errorWithCode:@"unsupported_speed"
message:@"Speed must be >= 0.0 and <= 2.0"
details:nil]);
} else if ((speed > 1.0 && _player.currentItem.canPlayFastForward) ||
(speed < 1.0 && _player.currentItem.canPlaySlowForward)) {
// Fix from: https://github.com/jhomlala/betterplayer/issues/574#issuecomment-879657453
} else if ((speed > 1.0) || (speed < 1.0))) {
_playerRate = speed;
result(nil);
} else {
Expand Down

0 comments on commit 7f4370f

Please sign in to comment.