Skip to content

Commit

Permalink
bug fix for
Browse files Browse the repository at this point in the history
Unable to set audio speed after pausing
  • Loading branch information
VIPlearner authored and JcMinarro committed Nov 12, 2024
1 parent 00eb6fe commit d5c5541
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ internal class StreamMediaPlayer(
currentSpeed + SPEED_INCREMENT
}

if (playerState == PlayerState.PLAYING && mediaPlayer.isSpeedSettable()) {
if ((playerState == PlayerState.PLAYING || playerState == PlayerState.PAUSE) &&
mediaPlayer.isSpeedSettable()
) {
playingSpeed = newSpeed
mediaPlayer.speed = newSpeed
publishSpeed(currentAudioHash, newSpeed)
Expand Down

0 comments on commit d5c5541

Please sign in to comment.