Audio does not start after reopening the animation
Description
I am using the latest version of SDK 10.3.1. I took your example with ping pong. The sound stops playing in the animation after minimizing and maximizing the application. The sound also stops playing when returning to the screen with animation.
Provide a Repro
- Open app
- Open animation
- Close screen with animation
- Open again screen with animation
Expected behavior
Sound should play.
Videos
Link to google driven with videos https://drive.google.com/drive/folders/1rfKxu8oDmt8Yt_zAhiM-dG4ljbSfklaM?usp=drive_link
Device & Versions (please complete the following information)
- Device: Pixel 9 pro android 16, pixel 7a android 14, samsung s24 android 15, samsung fold 6 android 15
This bug does not occur in version 10.2.1.
Hi @stasSuhanov, is there any solution? facing the same issue
Same issue occur in version 10.4.5
I'm facing the same issue
Same issue occur in version 10.5.0
I believe this is fixed as of fa07a1f6 which is included in 11.0.0
Hello, just popping in to ask if this issue is resolved as of our latest runtime version. If not, let me know and I can make sure this is acknowledged.
@tylernij @nshurtz
I have tested 11.0.0, 11.1.0, 11.1.1 and 11.1.2. Sounds works just once, but 10.2.1 works great, following what this comment says above. Also there is a big difference between 10.2.1 and 11.x.x which is we must update the project I work for with compileSdkVersion to 36 (from 35) and Android Gradle Plugin to 8.9.1 (from 8.6.0) and that's a no-no yet. We will try to downgrade Rive lib to 10.2.1 from 10.4.5. It seems like there are no major differences for now.
@Grandpasoul Thanks for your investigation. I'm surprised to hear it's not working in the 11 series of releases. We'll try and get a reproduction to confirm. Are you using the legacy API? I would assume so given that you're mostly using older versions of the library, but just want to confirm. And for the setup, you have audio triggered by a listener in Rive and it only plays once, is that correct?
As for AGP and compile SDK versions, we may be able to specify minimum versions lower than our current, but no guarantees. I'll look into it.