Skip to content

Commit 0a901f9

Browse files
maciejmakowski2003Maciej Makowski
and
Maciej Makowski
authored
fix: fixed system playback speed (#479)
Co-authored-by: Maciej Makowski <[email protected]>
1 parent f2f7cf2 commit 0a901f9

File tree

1 file changed

+4
-0
lines changed
  • packages/react-native-audio-api/android/src/main/java/com/swmansion/audioapi/system

1 file changed

+4
-0
lines changed

packages/react-native-audio-api/android/src/main/java/com/swmansion/audioapi/system/LockScreenManager.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ class LockScreenManager(
142142
state.playbackSpeed
143143
}
144144

145+
if (isPlaying && speed == 0F) {
146+
speed = 1F
147+
}
148+
145149
elapsedTime =
146150
if (info.hasKey("elapsedTime")) {
147151
(info.getDouble("elapsedTime") * 1000).toLong()

0 commit comments

Comments
 (0)