We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1.0
1 parent 6e837c1 commit b248e71Copy full SHA for b248e71
1 file changed
packages/audioplayers_android/android/src/main/kotlin/xyz/luan/audioplayers/player/MediaPlayerPlayer.kt
@@ -41,7 +41,7 @@ class MediaPlayerPlayer(
41
override fun setRate(rate: Float) {
42
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
43
mediaPlayer.playbackParams = mediaPlayer.playbackParams.setSpeed(rate)
44
- } else {
+ } else if (rate != 1.0f) {
45
error("Changing the playback rate is only available for Android M/23+ or using LOW_LATENCY mode.")
46
}
47
0 commit comments