Hi Rive team,
The embedded audio of the .riv file plays only the first time an animation is played. Subsequent plays, even after remounting the component with a unique key (e.g., Date.now()), do not play audio on Android. iOS works correctly.
This is the same behavior with rive-react-native@9.7.1 on the same environment as mentioned on [https://github.com/rive-app/rive-react-native/issues/377]
The issue occurs with both single and multiple .riv files, and it seems to be related to the Android native audio engine not reinitializing after the first playback.
Workarounds tested:
Forcing a new key on the component each playback → animation remounts correctly, but audio still does not play.
Playing audio externally with expo-audio works as expected, confirming the issue is with embedded audio on Android.
Steps to reproduce:
Use Expo SDK 54.0.29
Install @rive-app/react-native@0.1.1
Load a .riv file with embedded audio
Play animation once → audio plays
Replay animation (same or different .riv) → audio does not play
Expected behavior:
Embedded audio should play every time the animation is played, like on iOS.
Thanks!
Hi Rive team,
The embedded audio of the .riv file plays only the first time an animation is played. Subsequent plays, even after remounting the component with a unique key (e.g., Date.now()), do not play audio on Android. iOS works correctly.
This is the same behavior with rive-react-native@9.7.1 on the same environment as mentioned on [https://github.com/rive-app/rive-react-native/issues/377]
The issue occurs with both single and multiple .riv files, and it seems to be related to the Android native audio engine not reinitializing after the first playback.
Workarounds tested:
Forcing a new key on the component each playback → animation remounts correctly, but audio still does not play.
Playing audio externally with expo-audio works as expected, confirming the issue is with embedded audio on Android.
Steps to reproduce:
Use Expo SDK 54.0.29
Install @rive-app/react-native@0.1.1
Load a .riv file with embedded audio
Play animation once → audio plays
Replay animation (same or different .riv) → audio does not play
Expected behavior:
Embedded audio should play every time the animation is played, like on iOS.
Thanks!